Vulnerability · Published Oct 11, 2024 · Assigned by GitHub_M
CVE-2024-47877Extract has insufficient checks allowing attacker to create symlinks outside the extraction directory.
Medium 6.9
In plain English
A medium-severity path traversal in extract from codeclysm. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 46% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
Extract is aA Go library to extract archives in zip, tar.gz or tar.bz2 formats. A maliciously crafted archive may allow an attacker to create a symlink outside the extraction target directory. This vulnerability is fixed in 4.0.0. If you're using the Extractor.FS interface, then upgrading to /v4 will require to implement the new methods that have been added.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | github.com/codeclysm/extract | no fix listed | GHSA-8rm2-93mq-jqhc |
| Go | github.com/codeclysm/extract | no fix listed | GO-2024-3196 |
| Go | github.com/codeclysm/extract/v3 | no fix listed | GHSA-8rm2-93mq-jqhc |
| Go | github.com/codeclysm/extract/v3 | no fix listed | GO-2024-3196 |
| Go | github.com/codeclysm/extract/v4 | 4.0.0 | GHSA-8rm2-93mq-jqhc |
| Go | github.com/codeclysm/extract/v4 | 4.0.0 | GO-2024-3196 |
Affected products (as reported)
Weakness: CWE-22, CWE-61 · Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N