Bug 2506028

Summary: CVE-2026-11940 python3.12: CPython: tarfile extraction filter bypass allows escaping the destination directory [fedora-all]
Product: [Fedora] Fedora Reporter: Yadnyawalk Tale <ytale>
Component: python3.12Assignee: Python Maintainers <python-maint>
Status: CLOSED ERRATA QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: 45CC: cstratak, mhroncok, python-maint, python-packagers-sig, thrnciar, vstinner
Target Milestone: ---Keywords: Security, SecurityTracking
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: {"flaws": ["074b30b0-4e08-44bf-8625-3180c1d5a5df"]}
Fixed In Version: python3.12-3.12.14-1.fc44 python3.12-3.12.14-1.fc43 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2026-08-19 01:02:19 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2491848    

Description Yadnyawalk Tale 2026-07-22 07:33:52 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.

tarfile.extractall() with the 'data' or 'tar'
 filter could be bypassed by a crafted archive where a hardlink 
references a symlink stored at a deeper name than the hardlink itself.  
The extraction fallback validated the symlink at it's archived location 
but recreated it at the hardlink's shallower
path, letting a relative
 target the filter judged contained escape the destination directory.  
This allowed a malicious tar archive to create a symlink pointing 
outside the destination, enabling out-of-destination file reads or 
writes. This was an incomplete fix of CVE-2025-4330.

Comment 1 Fedora Update System 2026-08-17 11:36:52 UTC
FEDORA-2026-a9f0296a41 (python3.12-3.12.14-1.fc44) has been submitted as an update to Fedora 44.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-a9f0296a41

Comment 2 Fedora Update System 2026-08-17 11:37:28 UTC
FEDORA-2026-7de2b1cfc5 (python3.12-3.12.14-1.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-7de2b1cfc5

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

Comment 4 Fedora Update System 2026-08-18 01:30:36 UTC
FEDORA-2026-a9f0296a41 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-a9f0296a41`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-a9f0296a41

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

Comment 5 Fedora Update System 2026-08-18 01:56:19 UTC
FEDORA-2026-7de2b1cfc5 has been pushed to the Fedora 43 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-7de2b1cfc5`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-7de2b1cfc5

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

Comment 6 Fedora Update System 2026-08-19 01:02:19 UTC
FEDORA-2026-a9f0296a41 (python3.12-3.12.14-1.fc44) has been pushed to the Fedora 44 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 7 Fedora Update System 2026-08-26 01:02:56 UTC
FEDORA-2026-7de2b1cfc5 (python3.12-3.12.14-1.fc43) has been pushed to the Fedora 43 stable repository.
If problem still persists, please make note of it in this bug report.