tarfile: Skip DIRTYPE normalization during GNU LONGNAME/LONGLINK handling
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.
01
describes (1)
Related CVEs.
| ID | severity | exploitable | ||
|---|---|---|---|---|
| CVE-2025-13462US | low3.3 | — | ||
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.… | ||||
02
references
External citations — patches, advisories, analysis.
- https://github.com/python/cpython/commit/42d754e34c06e57ad6b8e7f92f32af679912d8abWEB
- https://github.com/python/cpython/commit/7ad3093d76a748af55bdb1d2e8aad3638163b017WEB
- https://github.com/python/cpython/commit/ae99fe3a33b43e303a05f012815cef60b611a9c7WEB
- https://github.com/python/cpython/issues/141707WEB
- https://github.com/python/cpython/pull/143934WEB
- https://mail.python.org/archives/list/security-announce@python.org/thread/EOMI5I66ZMKQ2INNFT6T7IAIKUGPZYIE/WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-13462WEB
scry
Advisories like this name the exposed products attackers go after on your perimeter. See what is exposed on your perimeter with a free passive scan.
Free scan