CVE-2024-47877 Extract has insufficient checks allowing attacker to create symlinks outside the extraction directory.
MediumCVSS 6.9
EPSS 0.55%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: partial
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.
Upgrade path
2 packages: 1 fixed, 1 partially fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| codeclysm github.com/codeclysm/extract/v3(Go) | < 4.0.0; <= 2.2.0; <= 3.1.1; All versions | 4.0.0 | Partially fixed |
| codeclysm github.com/codeclysm/extract/v3 | < 4.0.0; = < 4.0.0 | 4.0.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| codeclysm github.com/codeclysm/extract/v3(Go) | <= 3.1.1 | No fix listed |
| codeclysm github.com/codeclysm/extract/v3(Go) | < 4.0.0 | 4.0.0 |
| codeclysm github.com/codeclysm/extract/v3(Go) | <= 2.2.0 | No fix listed |
| codeclysm github.com/codeclysm/extract/v3(Go) | All versions | No fix listed |
| codeclysm github.com/codeclysm/extract/v3 | = < 4.0.0 | No fix listed |
| codeclysm github.com/codeclysm/extract/v3 | < 4.0.0 | 4.0.0 |
References
- https://github.com/codeclysm/extract/security/advisories/GHSA-8rm2-93mq-jqhc vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/codeclysm/extract/commit/4a98568021b8e289345c7f526ccbd7ed732cf286 patch
- github.com product
- github.com