Moderate severityNVD Advisory· Published Oct 11, 2024· Updated Oct 11, 2024
Extract has insufficient checks allowing attacker to create symlinks outside the extraction directory.
CVE-2024-47877
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
github.com/codeclysm/extract/v3Go | <= 3.1.1 | — |
github.com/codeclysm/extract/v4Go | < 4.0.0 | 4.0.0 |
github.com/codeclysm/extractGo | <= 2.2.0 | — |
Affected products
10- ghsa-coords9 versionspkg:golang/github.com/codeclysm/extractpkg:golang/github.com/codeclysm/extract/v3pkg:golang/github.com/codeclysm/extract/v4pkg:rpm/opensuse/govulncheck-vulndb&distro=openSUSE%20Leap%2015.5pkg:rpm/opensuse/govulncheck-vulndb&distro=openSUSE%20Leap%2015.6pkg:rpm/opensuse/govulncheck-vulndb&distro=openSUSE%20Tumbleweedpkg:rpm/suse/govulncheck-vulndb&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Package%20Hub%2015%20SP5pkg:rpm/suse/govulncheck-vulndb&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Package%20Hub%2015%20SP6pkg:rpm/suse/govulncheck-vulndb&distro=SUSE%20Package%20Hub%2012
<= 2.2.0+ 8 more
- (no CPE)range: <= 2.2.0
- (no CPE)range: <= 3.1.1
- (no CPE)range: < 4.0.0
- (no CPE)range: < 0.0.20241030T212825-150000.1.9.1
- (no CPE)range: < 0.0.20241030T212825-150000.1.9.1
- (no CPE)range: < 0.0.20241030T212825-1.1
- (no CPE)range: < 0.0.20241030T212825-150000.1.9.1
- (no CPE)range: < 0.0.20241030T212825-150000.1.9.1
- (no CPE)range: < 0.0.20241104T154416-5.1
Patches
Vulnerability mechanics
References
4- github.com/advisories/GHSA-8rm2-93mq-jqhcghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2024-47877ghsaADVISORY
- github.com/codeclysm/extract/commit/4a98568021b8e289345c7f526ccbd7ed732cf286ghsax_refsource_MISCWEB
- github.com/codeclysm/extract/security/advisories/GHSA-8rm2-93mq-jqhcghsax_refsource_CONFIRMWEB
News mentions
0No linked articles in our index yet.