tarfile: Skip DIRTYPE normalization during GNU LONGNAME/LONGLINK handling
Summary
| CVE | CVE-2025-13462 |
|---|---|
| State | PUBLISHED |
| Assigner | PSF |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-03-12 18:16:21 UTC |
| Updated | 2026-06-11 14:29:37 UTC |
| Description | The "tarfile" module would still apply normalization of AREGTYPE (\x00) blocks to DIRTYPE, even while processing a multi-block member such as GNUTYPE_LONGNAME or GNUTYPE_LONGLINK. This could result in a crafted tar archive being misinterpreted by the tarfile module compared to other implementations. |
Risk And Classification
Primary CVSS: v4.0 2 LOW from [email protected]
CVSS:4.0/AV:L/AC:H/AT:P/PR:L/UI:N/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
EPSS: 0.000350000 probability, percentile 0.107370000 (date 2026-06-08)
Problem Types: CWE-20 | CWE-74 | CWE-434 | CWE-434 CWE-434 Unrestricted Upload of File with Dangerous Type | CWE-74 CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') | CWE-20 CWE-20 Improper Input Validation
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 4.0 | [email protected] | Secondary | 2 | LOW | CVSS:4.0/AV:L/AC:H/AT:P/PR:L/UI:N/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:L/AC:H/AT:P/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N |
| 3.1 | [email protected] | Primary | 3.3 | LOW | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N |
CVSS v4.0 Breakdown
CVSS:4.0/AV:L/AC:H/AT:P/PR:L/UI:N/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
CVSS v3.1 Breakdown
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
NVD Known Affected Configurations (CPE 2.3)
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Python Software Foundation | CPython | affected 3.13.13 python | Not specified |
| CNA | Python Software Foundation | CPython | affected 3.14.0 3.14.4 python | Not specified |
| CNA | Python Software Foundation | CPython | affected 3.15.0a1 3.15.0a8 python | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| mail.python.org/archives/list/[email protected]/thread/EOMI5I66ZMK... | [email protected] | mail.python.org | Mailing List, Vendor Advisory |
| github.com/python/cpython/commit/42d754e34c06e57ad6b8e7f92f32af679912d8ab | [email protected] | github.com | Patch |
| github.com/python/cpython/issues/141707 | [email protected] | github.com | Issue Tracking |
| github.com/python/cpython/commit/ae99fe3a33b43e303a05f012815cef60b611a9c7 | [email protected] | github.com | Patch |
| github.com/python/cpython/commit/d10950739a78f54d0718d88fb5a868374603c084 | [email protected] | github.com | Patch |
| github.com/python/cpython/pull/143934 | [email protected] | github.com | Issue Tracking, Patch |
| github.com/python/cpython/commit/9a23b753552afa28e3a2f4d8863572fc66479406 | [email protected] | github.com | Patch |
| github.com/python/cpython/commit/72dde1016493c52abe857fc4a7bf6c40138b4114 | [email protected] | github.com | Patch |
| github.com/python/cpython/commit/7ad3093d76a748af55bdb1d2e8aad3638163b017 | [email protected] | github.com | Patch |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |