๐Ÿ” CVE Alert

CVE-2026-29509

MEDIUM 5.4

Patool < 4.0.5 Path Traversal via safe_extract() Function

CVSS Score
5.4
EPSS Score
0.0%
EPSS Percentile
0th

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.

CWE CWE-22
Vendor wummel
Product patool
Published Jun 26, 2026
Stay Ahead of the Next One

Get instant alerts for wummel patool

Be the first to know when new medium vulnerabilities affecting wummel patool are published โ€” delivered to Slack, Telegram or Discord.

Get Free Alerts โ†’ Free ยท No credit card ยท 60 sec setup

CVSS v3 Breakdown

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
None

Affected Versions

wummel / patool
0 < 4.0.5

References

NVD โ†— CVE.org โ†— EPSS Data โ†—
github.com: https://github.com/wummel/patool/releases/tag/4.0.5 github.com: https://github.com/wummel/patool/blob/main/doc/changelog.txt vulncheck.com: https://www.vulncheck.com/advisories/patool-path-traversal-via-safe-extract-function

Credits

CodeAnt AI Security VulnCheck