tarfile.data_filter path traversal bypass allows writing outside the extraction directory
Summary
| CVE | CVE-2026-7774 |
|---|---|
| State | PUBLISHED |
| Assigner | PSF |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-06-04 16:16:42 UTC |
| Updated | 2026-07-22 20:10:00 UTC |
| Description | 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. |
Risk And Classification
Primary CVSS: v4.0 6.9 MEDIUM from [email protected]
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
EPSS: 0.006220000 probability, percentile 0.461210000 (date 2026-07-22)
Problem Types: CWE-22 | CWE-22 CWE-22
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 4.0 | [email protected] | Secondary | 6.9 | MEDIUM | 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/C... |
| 4.0 | CNA | CVSS | 6.9 | MEDIUM | 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 |
CVSS v4.0 Breakdown
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
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Python Software Foundation | CPython | affected 3.13.14 python | Not specified |
| CNA | Python Software Foundation | CPython | affected 3.14.0 3.14.6 python | Not specified |
| CNA | Python Software Foundation | CPython | affected 3.15.0a1 3.15.0b2 python | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| github.com/python/cpython/commit/74cca9a92fb7d653e404843a56b8bdc7b0afdbbf | [email protected] | github.com | |
| www.openwall.com/lists/oss-security/2026/06/04/9 | af854a3a-2127-422b-91ae-364da2661108 | www.openwall.com | |
| github.com/python/cpython/commit/0d28f5e46e151718972dfabd91205444d0037b6d | [email protected] | github.com | |
| github.com/python/cpython/commit/0478bd83d82b255e0f29f613367a59d261e7eaa2 | [email protected] | github.com | |
| github.com/python/cpython/issues/149486 | [email protected] | github.com | |
| github.com/python/cpython/commit/578411982c16f753f4893532510099ef665117da | [email protected] | github.com | |
| github.com/python/cpython/commit/10a13bee3c24f9c62b602e696334ff2272a40efc | [email protected] | github.com | |
| github.com/python/cpython/commit/5cf47a248c35c375d610b87b2f72fd1ed454b558 | [email protected] | github.com | |
| mail.python.org/archives/list/[email protected]/thread/4FU62L2M6RM... | [email protected] | mail.python.org | |
| github.com/python/cpython/commit/c063191cb7f9170f9565e305f8aa2b79ab2bf609 | [email protected] | github.com | |
| github.com/python/cpython/pull/149487 | [email protected] | github.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
Vendor Comments And Credit
Discovery Credit
CNA: Phùng Siêu Đạt (OPSWAT Unit 515) (en)
CNA: Seth Larson (https://github.com/sethmlarson) (en)
CNA: Gregory P. Smith (https://github.com/gpshead) (en)
CNA: Petr Viktorin (https://github.com/encukou) (en)
CNA: Stan Ulbrych (https://github.com/StanFromIreland) (en)