# CVE-2025-13462: tarfile: Skip DIRTYPE normalization during GNU LONGNAME/LONGLINK handling

- Severity: Low 2.0 (CVSS:4.0, scored by PSF) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.18%, higher than 8% of CVEs (2026-12-01)
- Published: 2026-03-12T17:59:26.620Z
- Modified: 2026-08-13T01:16:50.980Z
- Also known as: PSF-2026-10, BIT-LIBPYTHON-2025-13462, BIT-PYTHON-2025-13462, BIT-PYTHON-MIN-2025-13462
- Weaknesses: CWE-20, CWE-74, CWE-434
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: PSF

## 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.

(As written by CVE List.)

## Affected

- Python Software Foundation CPython: before 3.10.21; from 3.11.0 before 3.11.16; from 3.12.0 before 3.12.14; from 3.13.0 before 3.13.13; from 3.14.0 before 3.14.4; from 3.15.0a1 before 3.15.0a8
- https://github.com/python/cpython: before 42d754e34c06e57ad6b8e7f92f32af679912d8ab; before 7ad3093d76a748af55bdb1d2e8aad3638163b017; before ae99fe3a33b43e303a05f012815cef60b611a9c7; before 72dde1016493c52abe857fc4a7bf6c40138b4114; before 9a23b753552afa28e3a2f4d8863572fc66479406; before d10950739a78f54d0718d88fb5a868374603c084
- python python: before 3.13.13; from 3.14.0 before 3.14.4; 3.15.0
- libpython (Bitnami): before 3.15.0
- python (Bitnami): before 3.15.0
- python-min (Bitnami): before 3.15.0

## Every score

- PSF: CVSS: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`
- NVD: CVSS:3.1 3.3 Low `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N`
- Bitnami Vulnerability Database: rating Low

## References

- <https://github.com/python/cpython/pull/143934> (issue-tracking, patch, web)
- <https://github.com/python/cpython/issues/141707> (issue-tracking, report, web)
- <https://mail.python.org/archives/list/security-announce@python.org/thread/EOMI5I66ZMKQ2INNFT6T7IAIKUGPZYIE/> (advisory, mailing-list, vendor-advisory, web)
- <https://github.com/python/cpython/commit/42d754e34c06e57ad6b8e7f92f32af679912d8ab> (fix, patch, web)
- <https://github.com/python/cpython/commit/7ad3093d76a748af55bdb1d2e8aad3638163b017> (fix, patch, web)
- <https://github.com/python/cpython/commit/ae99fe3a33b43e303a05f012815cef60b611a9c7> (fix, patch, web)
- <https://github.com/python/cpython/commit/72dde1016493c52abe857fc4a7bf6c40138b4114> (fix, patch)
- <https://github.com/python/cpython/commit/9a23b753552afa28e3a2f4d8863572fc66479406> (fix, patch)
- <https://github.com/python/cpython/commit/d10950739a78f54d0718d88fb5a868374603c084> (fix, patch)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-13462> (web)

## Sources

- CVE List: [CVE-2025-13462](https://www.cve.org/CVERecord?id=CVE-2025-13462), CVE Terms of Use, modified 2026-08-13
- Python Software Foundation: [PSF-2026-10](https://osv.dev/vulnerability/PSF-2026-10), CC-BY-4.0, modified 2026-06-05
- NVD: [CVE-2025-13462](https://nvd.nist.gov/vuln/detail/CVE-2025-13462), Public domain, modified 2026-08-13
- Bitnami Vulnerability Database: [BIT-LIBPYTHON-2025-13462](https://osv.dev/vulnerability/BIT-LIBPYTHON-2025-13462), Apache-2.0, modified 2026-03-27
- Bitnami Vulnerability Database: [BIT-PYTHON-2025-13462](https://osv.dev/vulnerability/BIT-PYTHON-2025-13462), Apache-2.0, modified 2026-03-27
- Bitnami Vulnerability Database: [BIT-PYTHON-MIN-2025-13462](https://osv.dev/vulnerability/BIT-PYTHON-MIN-2025-13462), Apache-2.0, modified 2026-03-27

---

Page: https://cve.day/CVE-2025-13462 · Whole record: https://cve.day/CVE-2025-13462.json · Rebuilt by cve.day 2026-11-25T22:59:11.915Z
