CVE-2026-29509 Patool < 4.0.5 Path Traversal via safe_extract() Function
MediumCVSS 5.3
EPSS 0.37%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- UbuntuDebian
Description
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.
Upgrade path
6 packages: 3 fixed, 3 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/patool(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/patool(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/patool(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| debian/patool(Debian 13) | < 4.0.0-1+deb13u1; = 4.0.0-1 | 4.0.0-1+deb13u1 | Fixed |
| debian/patool(Debian 14) | < 4.0.5-0.1; = 4.0.0-1; = 4.0.1-1; = 4.0.2-1 +2 more | 4.0.5-0.1 | Fixed |
| wummel/patool | < 4.0.5 | 4.0.5 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| wummel/patool | < 4.0.5 | 4.0.5 |
| debian/patool(Debian:13) | < 4.0.0-1+deb13u1 | 4.0.0-1+deb13u1 |
| debian/patool(Debian:13) | = 4.0.0-1 | No fix listed |
| debian/patool(Debian:14) | < 4.0.5-0.1 | 4.0.5-0.1 |
| debian/patool(Debian:14) | = 4.0.0-1 | No fix listed |
| debian/patool(Debian:14) | = 4.0.1-1 | No fix listed |
| debian/patool(Debian:14) | = 4.0.2-1 | No fix listed |
| debian/patool(Debian:14) | = 4.0.3-1 | No fix listed |
| debian/patool(Debian:14) | = 4.0.4-1 | No fix listed |
| ubuntu/patool(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/patool(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/patool(Ubuntu:26.04) | All versions | No fix listed |
References
- patool 4.0.5 Release Notes patch release-notes
- github.com release-notes
- www.vulncheck.com third-party-advisory
- Red Hat CVE page mitigation vendor-advisory
- Red Hat Bugzilla 2493710 issue-tracking
- www.cve.org
- nvd.nist.gov
- Debian Security Tracker CVE-2026-29509 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- ENISA EUVD EUVD-2026-39879 third-party-advisory