Low severity · published Mar 12, 2026
CVE-2025-13462
tarfile: Skip DIRTYPE normalization during GNU LONGNAME/LONGLINK handling
3.3
CVSS
0.2%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
Attack vector
Local
Complexity
Low
Privileges
Low
User interaction
None
Confidentiality
None
Integrity
Low
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.2% · higher than 6% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
CP
CPython · Python Software Foundation
before 3.10.21; 3.11.0 before 3.11.16; 3.12.0 before 3.12.14; 3.13.0 before 3.13.13; 3.14.0 before 3.14.4; 3.15.0a1 before 3.15.0a8 · source: vendor
PY
Python · Python
before 3.13.13; 3.14.0 before 3.14.4; 3.15.0; 3.15.0; 3.15.0; 3.15.0; +3 more · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2025-13462
CVE.org
https://www.cve.org/CVERecord?id=CVE-2025-13462
Patch
https://github.com/python/cpython/commit/42d754e34c06e57ad6b8e7f92f32af679912d8ab
Patch
https://github.com/python/cpython/commit/72dde1016493c52abe857fc4a7bf6c40138b4114
Patch
https://github.com/python/cpython/commit/7ad3093d76a748af55bdb1d2e8aad3638163b017
Patch
https://github.com/python/cpython/commit/9a23b753552afa28e3a2f4d8863572fc66479406
Patch
https://github.com/python/cpython/commit/ae99fe3a33b43e303a05f012815cef60b611a9c7
Patch
https://github.com/python/cpython/commit/d10950739a78f54d0718d88fb5a868374603c084
More from CPython
9.4
CVE-2026-115557
Distrust compromised intermediate certificates in ssl module
9.2
CVE-2026-19445
Use-after-free of a server-side SSLContext when sni_callback switches contexts
8.8
CVE-2026-3298
Out-of-bounds write in Windows asyncio.ProacterEventLoop.sock_recvfrom_into() when using nbytes
8.4
CVE-2026-82049
tarfile extraction filters allow file modification and content disclosure via hard link to symlink
8.2
CVE-2026-11972
tarfile opened in streaming mode mishandles EOF
