CVE-2025-13462
EPSS 0.02%tarfile: Skip DIRTYPE normalization during GNU LONGNAME/LONGLINK handling
Published: 3/12/2026Modified: 5/16/2026
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 (7)
- Bitnami/pythonfrom 0, < 3.15.0
- Bitnami/python-minfrom 0, < 3.15.0
- Debian/python2.7from 0
- Debian/python3.11from 0
- Debian/python3.13from 0, < 3.13.5-2+deb13u1
- Debian/python3.14from 0, < 3.14.3-4
- Debian/python3.9from 0, < 3.9.2-1+deb11u7
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 4.0 | — | 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 |
References (8)
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2025-13462
- WEBhttps://github.com/python/cpython/commit/42d754e34c06e57ad6b8e7f92f32af679912d8ab
- WEBhttps://github.com/python/cpython/commit/7ad3093d76a748af55bdb1d2e8aad3638163b017
- WEBhttps://github.com/python/cpython/commit/ae99fe3a33b43e303a05f012815cef60b611a9c7
- WEBhttps://github.com/python/cpython/issues/141707
- WEBhttps://github.com/python/cpython/pull/143934
- WEBhttps://mail.python.org/archives/list/[email protected]/thread/EOMI5I66ZMKQ2INNFT6T7IAIKUGPZYIE/
- WEBhttps://nvd.nist.gov/vuln/detail/CVE-2025-13462