CVE-2026-7774
MEDIUMtarfile.data_filter path traversal bypass allows writing outside the extraction directory
Title source: cnaDescription
tarfile.data_filter could be bypassed using crafted link entries, including symlinks with empty or directory-like names, to redirect later archive members outside the intended extraction directory. This allowed a malicious tar archive to cause tarfile.extractall() to write files outside the destination directory, subject to the permissions of the extracting process.
References (9)
Core 9
Core References
Patch patch
https://github.com/python/cpython/pull/149487
Issue Tracking issue-tracking
https://github.com/python/cpython/issues/149486
Vendor Advisory vendor-advisory
https://mail.python.org/archives/list/[email protected]/thread/4FU62L2M6RMMHT2QPGQNPEHHUND7CEX5/
Scores
CVSS v4
6.9
EPSS
0.0061
EPSS Percentile
44.1%
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
CISA SSVC
Vulnrichment
Exploitation
none
Automatable
no
Technical Impact
partial
Details
CWE
CWE-22
Status
published
Products (4)
Python Software Foundation/CPython
< 3.13.14
Python Software Foundation/CPython
< 3.15.0
Python Software Foundation/CPython
3.14.0 - 3.14.6
Python Software Foundation/CPython
3.15.0a1 - 3.15.0b2
Published
Jun 04, 2026
Tracked Since
Jun 04, 2026