Bug 2508373 - CVE-2026-29509 patool: Patool: Arbitrary file write via path traversal in archive extraction [fedora-all]
Summary: CVE-2026-29509 patool: Patool: Arbitrary file write via path traversal in arc...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: patool
Version: 45
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
Assignee: fedepell
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: {"flaws": ["5268e391-de92-43ff-b093-5...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-07-29 11:14 UTC by Oleg Sushchenko
Modified: 2026-09-22 00:53 UTC (History)
2 users (show)

Fixed In Version: patool-4.1.0-1.fc46 patool-4.1.0-1.fc45 patool-4.1.0-1.fc44
Clone Of:
Environment:
Last Closed: 2026-09-13 05:16:37 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Oleg Sushchenko 2026-07-29 11:14:36 UTC
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.

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.

Comment 1 Aoife Moloney 2026-08-17 15:40:16 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 45 development cycle.
Changing version to 45.

Comment 2 Fedora Update System 2026-09-13 05:12:21 UTC
FEDORA-2026-d38857d084 (patool-4.1.0-1.fc46) has been submitted as an update to Fedora 46.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-d38857d084

Comment 3 Fedora Update System 2026-09-13 05:16:37 UTC
FEDORA-2026-d38857d084 (patool-4.1.0-1.fc46) has been pushed to the Fedora 46 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 4 Fedora Update System 2026-09-13 05:32:02 UTC
FEDORA-2026-3a35235bd6 (patool-4.1.0-1.fc45) has been submitted as an update to Fedora 45.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-3a35235bd6

Comment 5 Fedora Update System 2026-09-13 05:50:42 UTC
FEDORA-2026-23dc582dae (patool-4.1.0-1.fc44) has been submitted as an update to Fedora 44.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-23dc582dae

Comment 6 Fedora Update System 2026-09-14 01:29:14 UTC
FEDORA-2026-3a35235bd6 has been pushed to the Fedora 45 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-3a35235bd6`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-3a35235bd6

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2026-09-14 02:04:42 UTC
FEDORA-2026-23dc582dae has been pushed to the Fedora 44 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-23dc582dae`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-23dc582dae

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 Fedora Update System 2026-09-22 00:16:05 UTC
FEDORA-2026-3a35235bd6 (patool-4.1.0-1.fc45) has been pushed to the Fedora 45 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 9 Fedora Update System 2026-09-22 00:53:48 UTC
FEDORA-2026-23dc582dae (patool-4.1.0-1.fc44) has been pushed to the Fedora 44 stable repository.
If problem still persists, please make note of it in this bug report.


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