Bug 2493710 (CVE-2026-29509) - CVE-2026-29509 patool: Patool: Arbitrary file write via path traversal in archive extraction
Summary: CVE-2026-29509 patool: Patool: Arbitrary file write via path traversal in arc...
Keywords:
Status: NEW
Alias: CVE-2026-29509
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-06-26 21:02 UTC by OSIDB Bzimport
Modified: 2026-07-30 11:16 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-06-26 21:02:13 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.