{"id":"CVE-2026-29509","published":"2026-06-26T19:31:07Z","modified":"2026-11-08T14:01:53Z","title":"Patool < 4.0.5 Path Traversal via safe_extract() Function","vendor":"wummel","product":"patool","tier":"tail","description":{"text":"Patool before 4.0.5 contains a path traversal vulnerability in the safe_extract() function in patoolib/programs/py_tarfile.py when running on Python before 3.12, where the is_within_directory() helper uses os.path.commonprefix() for character-level string comparison instead of path-level comparison, allowing a crafted archive member path to bypass the containment check. Attackers can supply a malicious archive with specially crafted member paths to write arbitrary files.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00371,"percentile":0.31876,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/wummel/patool/releases/tag/4.0.5","tags":["patch","release-notes"]},{"url":"https://github.com/wummel/patool/blob/main/doc/changelog.txt","tags":["release-notes"]},{"url":"https://www.vulncheck.com/advisories/patool-path-traversal-via-safe-extract-function","tags":["third-party-advisory"]}],"priority":{"score":10.2,"factors":[{"name":"EPSS percentile","points":6.38},{"name":"CVSS severity","points":3.78}]},"vendorSlug":"wummel","affectedVersions":[{"vendor":"wummel","product":"patool","versions":["< 4.0.5"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-06-27T03:03:15.517374Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-39879","exploited":false,"provenance":"source"}}