{"id":"CVE-2025-64346","aliases":["EUVD-2025-8630","GHSA-j95m-rcjp-q69h","GO-2025-3581"],"status":"published","title":"archives: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","description":"archives is a Go library for extracting archives (tar, zip, etc.). Version 1.0.0 does not prevent a malicious user to feed a specially crafted archive to the library causing RCE, modification of files or other malignancies in the context of whatever the user is running this library as, through the program that imports it. Severity depends on user permissions, environment and how arbitrary archives are passed. This issue is fixed in version 1.0.1.","severity":{"version":"4.0","score":6,"vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-09","score":0.00386,"percentile":0.32991,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-22"],"published":"2025-03-28T14:45:59Z","modified":"2026-10-28T02:31:01Z","fixes":[{"ecosystem":"Go","package":"github.com/jaredallard/archives","fixed_in":["1.0.1"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Go","package":"github.com/jaredallard/archives","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.1"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/jaredallard/archives","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.0.1"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/jaredallard/archives","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.0.1"}]}]}],"products":[{"vendor":"jaredallard","product":"archives"}],"references":[{"url":"https://github.com/jaredallard/archives/security/advisories/GHSA-j95m-rcjp-q69h","tags":["x_refsource_CONFIRM","advisory","web"]},{"url":"https://github.com/jaredallard/archives/commit/3bddec7bd3f38afbe97ae61d1c8a8487e9ea4ef1","tags":["x_refsource_MISC","fix","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-64346","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-j95m-rcjp-q69h"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/64xxx/CVE-2025-64346.json","tags":["advisory"]},{"url":"https://github.com/jaredallard/archives","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2025-64346","title":"archives: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","description":"archives is a Go library for extracting archives (tar, zip, etc.). Version 1.0.0 does not prevent a malicious user to feed a specially crafted archive to the library causing RCE, modification of files or other malignancies in the context of whatever the user is running this library as, through the program that imports it. Severity depends on user permissions, environment and how arbitrary archives are passed. This issue is fixed in version 1.0.1.","status":"published","published":"2025-11-07T05:32:09.605Z","modified":"2025-11-07T13:19:52.595Z","cvss":[{"version":"4.0","score":6,"vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N","level":"medium","assessor":"cna"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T14:32:46.750177Z"}],"euvd":[{"id":"EUVD-2025-8630","description":"archives is a Go library for extracting archives (tar, zip, etc.). Version 1.0.0 does not prevent a malicious user to feed a specially crafted archive to the library causing RCE, modification of files or other malignancies in the context of whatever the user is running this library as, through the program that imports it. Severity depends on user permissions, environment and how arbitrary archives are passed. This issue is fixed in version 1.0.1.","status":"published","published":"2025-11-07T05:32:09Z","modified":"2025-11-07T13:19:52Z","cvss":[{"version":"4.0","score":6,"vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N","level":"medium"}],"updated_at":"2026-11-02T19:49:19.806495Z"}],"ghsa":[{"id":"GHSA-j95m-rcjp-q69h","title":"github.com/jaredallard/archives Has Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","description":"### Impact\n\nA malicious user could feed a specially crafted archive to this library causing RCE, modification of files or other bad things in the context of whatever user is running this library as, through the program that imports it.\n\nThe severity highly depends on the user's permissions and environment it is being ran in (e.g., non root, read only root container would likely have no impact vs running something as root on a production system).\n\nThe severity is also dependent on **arbitrary archives** being passed or not.\n\nBased on the above, severity high was picked to be safe.\n\n### Patches\n\nPatched with the help of snyk and gosec in v1.0.1\n\n### Workarounds\n\nThe only workaround is to manually validate archives before submitting them to this library, however that is not recommended vs upgrading to unaffected versions.\n\n### References\n\nhttps://security.snyk.io/research/zip-slip-vulnerability","status":"published","published":"2025-03-28T14:45:59Z","modified":"2025-11-07T16:43:13Z","cvss":[{"version":"4.0","score":6,"vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N","level":"medium"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T14:39:07.985215Z"}],"nvd":[{"id":"CVE-2025-64346","description":"archives is a Go library for extracting archives (tar, zip, etc.). Version 1.0.0 does not prevent a malicious user to feed a specially crafted archive to the library causing RCE, modification of files or other malignancies in the context of whatever the user is running this library as, through the program that imports it. Severity depends on user permissions, environment and how arbitrary archives are passed. This issue is fixed in version 1.0.1.","status":"published","published":"2025-11-07T06:15:33.85Z","modified":"2026-06-17T09:54:14.933Z","cvss":[{"version":"4.0","score":6,"vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:L/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","level":"medium","assessor":"secondary"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T14:11:42.870953Z"}],"osv":[{"id":"CVE-2025-64346","title":"archives: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","description":"archives is a Go library for extracting archives (tar, zip, etc.). Version 1.0.0 does not prevent a malicious user to feed a specially crafted archive to the library causing RCE, modification of files or other malignancies in the context of whatever the user is running this library as, through the program that imports it. Severity depends on user permissions, environment and how arbitrary archives are passed. This issue is fixed in version 1.0.1.","status":"published","published":"2025-11-07T05:32:09.605Z","modified":"2026-10-28T02:31:01.155807133Z","cvss":[{"version":"4.0","score":6,"vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N","level":"medium"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T15:44:51.851511Z"},{"id":"GHSA-j95m-rcjp-q69h","title":"github.com/jaredallard/archives Has Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","description":"### Impact\n\nA malicious user could feed a specially crafted archive to this library causing RCE, modification of files or other bad things in the context of whatever user is running this library as, through the program that imports it.\n\nThe severity highly depends on the user's permissions and environment it is being ran in (e.g., non root, read only root container would likely have no impact vs running something as root on a production system).\n\nThe severity is also dependent on **arbitrary archives** being passed or not.\n\nBased on the above, severity high was picked to be safe.\n\n### Patches\n\nPatched with the help of snyk and gosec in v1.0.1\n\n### Workarounds\n\nThe only workaround is to manually validate archives before submitting them to this library, however that is not recommended vs upgrading to unaffected versions.\n\n### References\n\nhttps://security.snyk.io/research/zip-slip-vulnerability","status":"published","published":"2025-03-28T14:45:59Z","modified":"2025-11-07T16:43:11Z","cvss":[{"version":"4.0","score":6,"vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N","level":"medium"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T15:46:50.336262Z"},{"id":"GO-2025-3581","title":"github.com/jaredallard/archives Has Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","description":"github.com/jaredallard/archives Has Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","status":"published","published":"2025-04-01T21:39:57Z","modified":"2026-03-03T04:56:28.495365Z","updated_at":"2026-11-02T15:47:01.728182Z"}]}}
