# CVE-2024-47877: Extract has insufficient checks allowing attacker to create symlinks outside the extraction directory.

- Severity: Medium 6.9 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.55%, higher than 47% of CVEs (2026-12-01)
- Published: 2024-10-11T16:36:29.763Z
- Modified: 2026-06-17T07:57:54.163Z
- Also known as: GHSA-8rm2-93mq-jqhc, GO-2024-3196
- Weaknesses: CWE-22, CWE-61
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- codeclysm extract: < 4.0.0; before 4.0.0
- github.com/codeclysm/extract/v3 (Go): up to 3.1.1; all versions
- github.com/codeclysm/extract/v4 (Go): before 4.0.0
- github.com/codeclysm/extract (Go): up to 2.2.0; all versions

## Every score

- GitHub_M: CVSS:4.0 6.9 Medium `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`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- GitHub: CVSS:4.0 Medium `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`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`

## References

- <https://github.com/codeclysm/extract/security/advisories/GHSA-8rm2-93mq-jqhc> (advisory, vendor-advisory, web)
- <https://github.com/codeclysm/extract/commit/4a98568021b8e289345c7f526ccbd7ed732cf286> (fix, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-47877> (advisory)
- <https://github.com/codeclysm/extract> (package)

## Sources

- CVE List: [CVE-2024-47877](https://www.cve.org/CVERecord?id=CVE-2024-47877), CVE Terms of Use, modified 2024-10-11
- GitHub Advisory Database: [GHSA-8rm2-93mq-jqhc](https://github.com/advisories/GHSA-8rm2-93mq-jqhc), CC-BY-4.0, modified 2024-10-15
- Go Vulnerability Database: [GO-2024-3196](https://pkg.go.dev/vuln/GO-2024-3196), CC-BY-4.0, modified 2026-03-03
- NVD: [CVE-2024-47877](https://nvd.nist.gov/vuln/detail/CVE-2024-47877), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-47877 · Whole record: https://cve.day/CVE-2024-47877.json · Rebuilt by cve.day 2026-11-25T22:58:46.687Z
