Vulnerability · Published Dec 27, 2022 · Assigned by Go

CVE-2020-36560Path traversal in github.com/artdarek/go-unzip

Critical 9.1

In plain English

A critical-severity security flaw in github.com/artdarek/go-unzip from github.com/artdarek/go-unzip. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 1.3% (higher than 71% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)9.1Critical
Exploit odds (30 days)1.3%top 28.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Gogithub.com/artdarek/go-unzip1.0.0GO-2020-0034
Gogithub.com/artdarek/go-unzip2.0.0GHSA-rmj9-q58g-9qgg

Affected products (as reported)

VendorProductVersions
github.com/artdarek/go-unzip github.com/artdarek/go-unzip 0 – before 1.0.0

References