Tarfile.extract() doesn't fully respect filter parameter
Summary
| CVE | CVE-2026-4360 |
|---|---|
| State | PUBLISHED |
| Assigner | PSF |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-06-30 15:16:57 UTC |
| Updated | 2026-06-30 16:16:55 UTC |
| Description | In the Tarfile.extract() function, the filter parameter is not passed properly when extracting hardlinks. An affected system that extracts content from untrusted tar files could end up writing files with an unexpected uid/gid despite the user passing filter='data' to the extract() function. |
Risk And Classification
Primary CVSS: v4.0 2 LOW from [email protected]
CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:P/VC:N/VI:L/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
Problem Types: CWE-281 | CWE-281 CWE-281
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 4.0 | [email protected] | Secondary | 2 | LOW | CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/C... |
| 4.0 | CNA | CVSS | 2 | LOW | CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N |
CVSS v4.0 Breakdown
Attack Vector
NetworkAttack Complexity
LowAttack Requirements
PresentPrivileges Required
HighUser Interaction
PassiveConfidentiality
NoneIntegrity
LowAvailability
NoneSub Conf.
NoneSub Integrity
NoneSub Availability
NoneCVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:P/VC:N/VI:L/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.15.0 python | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| github.com/python/cpython/issues/151987 | [email protected] | github.com | |
| github.com/python/cpython/pull/151988 | [email protected] | github.com | |
| github.com/python/cpython/commit/5e0ef3f1afe892e4f64eb83368db57ac4c40cba0 | [email protected] | github.com | |
| github.com/python/cpython/commit/7b57e8d51446297b8c7c482d224bc5f1938e4301 | [email protected] | github.com | |
| mail.python.org/archives/list/[email protected]/thread/TWZW2PC2AZO... | [email protected] | mail.python.org | |
| github.com/python/cpython/commit/7ccdbaba2c54250a70d7f25632152df7655a5e0a | [email protected] | github.com | |
| github.com/python/cpython/commit/eee3ddf0ca10283cc7fea724aae9cd8665f8d15e | [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: Michael Scovetta (https://github.com/scovetta) (en)
CNA: Seth Larson (https://github.com/sethmlarson) (en)
CNA: Petr Viktorin (https://github.com/encukou) (en)
There are currently no legacy QID mappings associated with this CVE.