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.

Severity (CVSS 4.0)6.9Medium
Exploit odds (30 days)0.5%top 53.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Gogithub.com/codeclysm/extractno fix listedGHSA-8rm2-93mq-jqhc
Gogithub.com/codeclysm/extractno fix listedGO-2024-3196
Gogithub.com/codeclysm/extract/v3no fix listedGHSA-8rm2-93mq-jqhc
Gogithub.com/codeclysm/extract/v3no fix listedGO-2024-3196
Gogithub.com/codeclysm/extract/v44.0.0GHSA-8rm2-93mq-jqhc
Gogithub.com/codeclysm/extract/v44.0.0GO-2024-3196

Affected products (as reported)

VendorProductVersions
codeclysm extract < 4.0.0

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

References