{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-47877","id":"CVE-2024-47877","title":"Extract has insufficient checks allowing attacker to create symlinks outside the extraction directory.","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.","descriptionLong":"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.","published":"2024-10-11T16:36:29.763Z","updated":"2026-10-28T02:30:48.980264462Z","reserved":"2024-10-04T16:00:09.630Z","status":"Analyzed","rejected":false,"assigner":"GitHub_M","metric":{"version":"4.0","score":6.9,"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","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"4.0","score":6.9,"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","rating":"medium","source":"GitHub_M"},{"version":"4.0","score":6.9,"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","rating":"medium","source":"github.com"},{"version":"4.0","score":null,"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","rating":"unrated","source":"OSV"},{"version":"4.0","score":null,"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","rating":"medium","source":"GitHub"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","rating":"high","source":"NVD"},{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","rating":"medium","source":"GitHub"}],"rating":"medium","products":["codeclysm extract"],"affectedProducts":[{"vendor":"codeclysm","product":"extract","defaultStatus":null,"versions":[{"version":"< 4.0.0","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"Go","name":"github.com/codeclysm/extract/v3","purl":"pkg:golang/github.com/codeclysm/extract/v3","ranges":["<=3.1.1","all versions"],"fixed":[],"advisory":"GHSA-8rm2-93mq-jqhc"},{"ecosystem":"Go","name":"github.com/codeclysm/extract/v4","purl":"pkg:golang/github.com/codeclysm/extract/v4","ranges":["<4.0.0"],"fixed":["4.0.0"],"advisory":"GHSA-8rm2-93mq-jqhc"},{"ecosystem":"Go","name":"github.com/codeclysm/extract","purl":"pkg:golang/github.com/codeclysm/extract","ranges":["<=2.2.0","all versions"],"fixed":[],"advisory":"GHSA-8rm2-93mq-jqhc"}],"cwes":["CWE-22","CWE-61"],"aliases":["GHSA-8rm2-93mq-jqhc","GO-2024-3196"],"references":[{"url":"https://github.com/codeclysm/extract/security/advisories/GHSA-8rm2-93mq-jqhc","tags":["x_refsource_CONFIRM","Vendor Advisory","advisory","web"]},{"url":"https://github.com/codeclysm/extract/commit/4a98568021b8e289345c7f526ccbd7ed732cf286","tags":["x_refsource_MISC","Patch","fix","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/47xxx/CVE-2024-47877.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-47877","tags":["advisory"]},{"url":"https://github.com/codeclysm/extract","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial"},"epss":0.00548,"epssPercentile":0.46814,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-47877","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-47877","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-47877","ok":true,"note":"3 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-8rm2-93mq-jqhc","ok":true,"note":"GHSA-8rm2-93mq-jqhc"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-47877","ok":true,"note":"scored 2026-11-20"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}