CVE-2026-29509

published 26 Jun 2026 · updated 8 Nov 2026

Patool < 4.0.5 Path Traversal via safe_extract() Function

5.4MediumCVSS 5.4EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 4.0.5.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
wummel<4.0.54.0.5

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-29509 severity on Zeptric[![CVE-2026-29509](https://zeptric.io/badge/cve/CVE-2026-29509.svg)](https://zeptric.io/cve/CVE-2026-29509)