Vulnerability · Published Mar 12, 2026 · Assigned by PSF
CVE-2025-13462tarfile: Skip DIRTYPE normalization during GNU LONGNAME/LONGLINK handling
Low 2.0
In plain English
A low-severity unrestricted file upload in CPython from Python Software Foundation. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 7% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | python3.11 | 3.11.2-6+deb12u8 | DEBIAN-CVE-2025-13462 |
| Debian:13 | python3.13 | 3.13.5-2+deb13u1 | DEBIAN-CVE-2025-13462 |
| Debian:14 | python3.14 | 3.14.3-4 | DEBIAN-CVE-2025-13462 |
| Ubuntu:22.04:LTS | python3.10 | 3.10.12-1~22.04.16 | USN-8509-1 |
| Ubuntu:22.04:LTS | python3.10 | 3.10.12-1~22.04.16 | UBUNTU-CVE-2025-13462 |
| Ubuntu:24.04:LTS | python3.12 | 3.12.3-1ubuntu0.15 | USN-8509-1 |
| Ubuntu:24.04:LTS | python3.12 | 3.12.3-1ubuntu0.15 | UBUNTU-CVE-2025-13462 |
| Ubuntu:25.10 | python3.13 | no fix listed | UBUNTU-CVE-2025-13462 |
| Ubuntu:25.10 | python3.14 | no fix listed | UBUNTU-CVE-2025-13462 |
| Ubuntu:26.04:LTS | python3.14 | 3.14.4-1ubuntu0.1 | USN-8509-1 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Python Software Foundation | CPython | 0 – before 3.10.213.11.0 – before 3.11.163.12.0 – before 3.12.143.13.0 – before 3.13.133.14.0 – before 3.14.43.15.0a1 – before 3.15.0a8 |
Weakness: CWE-434, CWE-74, CWE-20 · Vector: 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
References
- https://github.com/python/cpython/pull/143934 patch
- https://github.com/python/cpython/issues/141707 issue-tracking
- https://mail.python.org/archives/list/security-announce@python.org/thread/EOMI5I66ZMKQ2INNFT6T7IAIKUGPZYIE/ vendor-advisory
- https://github.com/python/cpython/commit/42d754e34c06e57ad6b8e7f92f32af679912d8ab patch
- https://github.com/python/cpython/commit/7ad3093d76a748af55bdb1d2e8aad3638163b017 patch
- https://github.com/python/cpython/commit/ae99fe3a33b43e303a05f012815cef60b611a9c7 patch
- https://github.com/python/cpython/commit/72dde1016493c52abe857fc4a7bf6c40138b4114 patch
- https://github.com/python/cpython/commit/9a23b753552afa28e3a2f4d8863572fc66479406 patch
- https://github.com/python/cpython/commit/d10950739a78f54d0718d88fb5a868374603c084 patch