{"id":"CVE-2024-47877","published":"2024-10-11T16:36:29Z","modified":"2024-10-11T17:49:34Z","title":"Extract has insufficient checks allowing attacker to create symlinks outside the extraction directory.","vendor":"codeclysm","product":"extract","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.9,"severity":"MEDIUM","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00799,"percentile":0.53252,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"},{"id":"CWE-61","name":"UNIX Symbolic Link (Symlink) Following"}],"references":[{"url":"https://github.com/codeclysm/extract/security/advisories/GHSA-8rm2-93mq-jqhc","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/codeclysm/extract/commit/4a98568021b8e289345c7f526ccbd7ed732cf286","tags":["x_refsource_MISC"]}],"priority":{"score":15.5,"factors":[{"name":"EPSS percentile","points":10.65},{"name":"CVSS severity","points":4.83}]},"vendorSlug":"codeclysm","affectedVersions":[{"vendor":"codeclysm","product":"extract","versions":["< 4.0.0"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2024-10-11T17:43:37.934098Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/codeclysm/extract/v3","vulnerableRanges":["<=3.1.1","all versions"],"patched":[],"from":["GHSA-8rm2-93mq-jqhc","GO-2024-3196"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/codeclysm/extract/v4","vulnerableRanges":["<4.0.0"],"patched":["4.0.0"],"from":["GHSA-8rm2-93mq-jqhc","GO-2024-3196"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/codeclysm/extract","vulnerableRanges":["<=2.2.0","all versions"],"patched":[],"from":["GHSA-8rm2-93mq-jqhc","GO-2024-3196"],"provenance":"source"}],"summary":{"text":"The Go library \"extract\" by codeclysm, which unpacks zip, tar.gz and tar.bz2 archives, has insufficient path checks that let a maliciously crafted archive create a symbolic link pointing outside the extraction target directory. An attacker who can supply such an archive over the network can trigger this without authentication or user interaction, and the flaw is limited to integrity impact on the affected system.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:37:39Z"},"euvd":{"id":"EUVD-2024-2999","exploited":false,"provenance":"source"}}