CVE-2025-13462
tarfile: Skip DIRTYPE normalization during GNU LONGNAME/LONGLINK handling
- State
- Published
- Severity
- 2.0 Low
- Published
- Mar 12, 2026
- Updated
- Aug 13, 2026
- Reserved
- Nov 19, 2025
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 4.0 | 2.0 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 | PSF |
Weaknesses
Affected Products
| Product | Versions |
|---|---|
CPythonPython Software Foundation |
|
References
- https://github.com/python/cpython/pull/143934patch
- https://github.com/python/cpython/issues/141707issue-tracking
- https://mail.python.org/archives/list/security-announce@python.org/thread/EOMI5I66ZMKQ2INNFT6T7IAIKUGPZYIE/vendor-advisory
- https://github.com/python/cpython/commit/42d754e34c06e57ad6b8e7f92f32af679912d8abpatch
- https://github.com/python/cpython/commit/7ad3093d76a748af55bdb1d2e8aad3638163b017patch
- https://github.com/python/cpython/commit/ae99fe3a33b43e303a05f012815cef60b611a9c7patch
- https://github.com/python/cpython/commit/72dde1016493c52abe857fc4a7bf6c40138b4114patch
- https://github.com/python/cpython/commit/9a23b753552afa28e3a2f4d8863572fc66479406patch
- https://github.com/python/cpython/commit/d10950739a78f54d0718d88fb5a868374603c084patch
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.