CVE-2025-13462
JSON

2.0low

tarfile: Skip DIRTYPE normalization during GNU LONGNAME/LONGLINK handling

Severity
2.0low CVSS:4.0 by PSF
Exploit likelihood
0.18% (higher than 8% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
PSF
Also known as
PSF-2026-10BIT-LIBPYTHON-2025-13462BIT-PYTHON-2025-13462BIT-PYTHON-MIN-2025-13462

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

Product or packageVersionsReported by
Python Software Foundation CPythonbefore 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.0a8CVE List
https://github.com/python/cpythonbefore 42d754e34c06e57ad6b8e7f92f32af679912d8ab, before 7ad3093d76a748af55bdb1d2e8aad3638163b017, before ae99fe3a33b43e303a05f012815cef60b611a9c7, before 72dde1016493c52abe857fc4a7bf6c40138b4114, before 9a23b753552afa28e3a2f4d8863572fc66479406, before d10950739a78f54d0718d88fb5a868374603c084Python Software Foundation
python pythonbefore 3.13.13, from 3.14.0 before 3.14.4, 3.15.0NVD
libpython (Bitnami)before 3.15.0Bitnami Vulnerability Database
python (Bitnami)before 3.15.0Bitnami Vulnerability Database
python-min (Bitnami)before 3.15.0Bitnami Vulnerability Database

All scores

PSF2.0low CVSS:4.0CVSS:4.0/AV:L/AC:H/AT:P/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
NVD3.3low CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
Bitnami Vulnerability Databaselow rating

Classification

CWE-20CWE-74CWE-434

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

El módulo 'tarfile' seguiría aplicando la normalización de bloques AREGTYPE (\x00) a DIRTYPE, incluso al procesar un miembro de múltiples bloques como GNUTYPE_LONGNAME o GNUTYPE_LONGLINK. Esto podría resultar en un archivo tar manipulado siendo malinterpretado por el módulo tarfile en comparación con otras implementaciones.

References

https://github.com/python/cpython/pull/143934issue-tracking, patch, web
https://github.com/python/cpython/issues/141707issue-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/42d754e34c06e57ad6b8e7f92f32af679912d8abfix, patch, web
https://github.com/python/cpython/commit/7ad3093d76a748af55bdb1d2e8aad3638163b017fix, patch, web
https://github.com/python/cpython/commit/ae99fe3a33b43e303a05f012815cef60b611a9c7fix, patch, web
https://github.com/python/cpython/commit/72dde1016493c52abe857fc4a7bf6c40138b4114fix, patch
https://github.com/python/cpython/commit/9a23b753552afa28e3a2f4d8863572fc66479406fix, patch
https://github.com/python/cpython/commit/d10950739a78f54d0718d88fb5a868374603c084fix, patch
https://nvd.nist.gov/vuln/detail/CVE-2025-13462web

Sources

SourceRecordLicence
CVE ListCVE-2025-13462 changed 2026-08-13CVE Terms of Use
Python Software FoundationPSF-2026-10 changed 2026-06-05CC-BY-4.0
NVDCVE-2025-13462 changed 2026-08-13Public domain
Bitnami Vulnerability DatabaseBIT-LIBPYTHON-2025-13462 changed 2026-03-27Apache-2.0
Bitnami Vulnerability DatabaseBIT-PYTHON-2025-13462 changed 2026-03-27Apache-2.0
Bitnami Vulnerability DatabaseBIT-PYTHON-MIN-2025-13462 changed 2026-03-27Apache-2.0