CVE-2020-36560
JSON

9.1critical

Path traversal in github.com/artdarek/go-unzip

Severity
9.1critical CVSS:3.1 by CISA-ADP
Exploit likelihood
1.33% (higher than 71% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Go
Also known as
GHSA-rmj9-q58g-9qggGO-2020-0034

Description

Due to improper path sanitization, archives containing relative file paths can cause files to be written (or overwritten) outside of the target directory.

Affected

Product or packageVersionsReported by
github.com/artdarek/go-unzipbefore 1.0.0CVE List
github.com/artdarek/go-unzip (Go)before 2.0.0, before 1.0.0GitHub Advisory Database, Go Vulnerability Database
go-unzip_project go-unzipbefore 1.0.0NVD

All scores

CISA-ADP9.1critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
GitHub9.1critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
NVD9.1critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H

Classification

CWE-22

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.

What each source says

CVE List

Due to improper path sanitization, archives containing relative file paths can cause files to be written (or overwritten) outside of the target directory.

GitHub Advisory Database

Due to improper path santization, archives containing relative file paths can cause files to be written (or overwritten) outside of the target directory.

NVD (es)

Debido a una sanitización inadecuada de la ruta, los archivos que contienen rutas de archivo relativas pueden hacer que los archivos se escriban (o sobrescriban) fuera del directorio de destino.

References

Sources

SourceRecordLicence
CVE ListCVE-2020-36560 changed 2025-04-11CVE Terms of Use
GitHub Advisory DatabaseGHSA-rmj9-q58g-9qgg changed 2023-11-08CC-BY-4.0
Go Vulnerability DatabaseGO-2020-0034 changed 2024-05-20CC-BY-4.0
NVDCVE-2020-36560 changed 2026-06-17Public domain