CVE-2026-29509
published medium CVSS 4.0 · 5.3Patool < 4.0.5 Path Traversal via safe_extract() Function
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| wummel | — | patool0 to < 4.0.5 · Other versions: affected | Affected | Not stated | VulnCheck |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 5.3 / 10
- Severity
- medium
- Provider
- VulnCheck · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
- Scenarios
- en: GENERAL
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 5.4 | medium | VulnCheck · cna | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N | en: GENERAL |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| wummel | patool | 0 to < 4.0.5 (affected · semver)Default: affected | VulnCheck · cna |
Weaknesses
1- CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
References
3- https://github.com/wummel/patool/blob/main/doc/changelog.txt
- patool 4.0.5 Release Notes https://github.com/wummel/patool/releases/tag/4.0.5
- https://www.vulncheck.com/advisories/patool-path-traversal-via-safe-extract-function
Provider assertions
2VulnCheck · cna
Patool < 4.0.5 Path Traversal via safe_extract() Function
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 7ca010d4ca309e4506d2682a6380b9c58b712a8461c58c6453fb1c1abf36c321
- Ingested
- 08 Nov 2026, 14:13:57 UTC
- Source record
- Official CVE record