CVE-2025-13462
tarfile: Skip DIRTYPE normalization during GNU LONGNAME/LONGLINK handling
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.
INFO
Published Date :
March 12, 2026, 6:16 p.m.
Last Modified :
June 11, 2026, 2:29 p.m.
Remotely Exploit :
Yes !
Source :
[email protected]
Affected Products
The following products are affected by CVE-2025-13462
vulnerability.
Even if cvefeed.io is aware of the exact versions of the
products
that
are
affected, the information is not represented in the table below.
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS 3.1 | CRITICAL | [email protected] | ||||
| CVSS 3.1 | LOW | [email protected] | ||||
| CVSS 4.0 | LOW | 28c92f92-d60d-412d-b760-e73465c3df22 | ||||
| CVSS 4.0 | LOW | [email protected] |
Solution
- Update the tarfile module to the latest version.
- Re-evaluate tar archive handling for security.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2025-13462.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2025-13462 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2025-13462
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2025-13462 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2025-13462 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
Reanalysis by [email protected]
Jun. 11, 2026
Action Type Old Value New Value Added CVSS V3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N Removed CVSS V3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H -
Initial Analysis by [email protected]
Jun. 05, 2026
Action Type Old Value New Value Added CVSS V3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H Added CPE Configuration OR *cpe:2.3:a:python:python:3.15.0:alpha1:*:*:*:*:*:* *cpe:2.3:a:python:python:3.15.0:alpha2:*:*:*:*:*:* *cpe:2.3:a:python:python:*:*:*:*:*:*:*:* versions up to (excluding) 3.13.13 *cpe:2.3:a:python:python:*:*:*:*:*:*:*:* versions from (including) 3.14.0 up to (excluding) 3.14.4 *cpe:2.3:a:python:python:3.15.0:alpha3:*:*:*:*:*:* *cpe:2.3:a:python:python:3.15.0:alpha4:*:*:*:*:*:* *cpe:2.3:a:python:python:3.15.0:alpha5:*:*:*:*:*:* *cpe:2.3:a:python:python:3.15.0:alpha6:*:*:*:*:*:* *cpe:2.3:a:python:python:3.15.0:alpha7:*:*:*:*:*:* Added Reference Type Python Software Foundation: https://github.com/python/cpython/commit/42d754e34c06e57ad6b8e7f92f32af679912d8ab Types: Patch Added Reference Type Python Software Foundation: https://github.com/python/cpython/commit/72dde1016493c52abe857fc4a7bf6c40138b4114 Types: Patch Added Reference Type Python Software Foundation: https://github.com/python/cpython/commit/7ad3093d76a748af55bdb1d2e8aad3638163b017 Types: Patch Added Reference Type Python Software Foundation: https://github.com/python/cpython/commit/9a23b753552afa28e3a2f4d8863572fc66479406 Types: Patch Added Reference Type Python Software Foundation: https://github.com/python/cpython/commit/ae99fe3a33b43e303a05f012815cef60b611a9c7 Types: Patch Added Reference Type Python Software Foundation: https://github.com/python/cpython/commit/d10950739a78f54d0718d88fb5a868374603c084 Types: Patch Added Reference Type Python Software Foundation: https://github.com/python/cpython/issues/141707 Types: Issue Tracking Added Reference Type Python Software Foundation: https://github.com/python/cpython/pull/143934 Types: Issue Tracking, Patch Added Reference Type Python Software Foundation: https://mail.python.org/archives/list/[email protected]/thread/EOMI5I66ZMKQ2INNFT6T7IAIKUGPZYIE/ Types: Mailing List, Vendor Advisory -
CVE Modified by [email protected]
Jun. 04, 2026
Action Type Old Value New Value Added Reference https://github.com/python/cpython/commit/d10950739a78f54d0718d88fb5a868374603c084 -
CVE Modified by [email protected]
May. 01, 2026
Action Type Old Value New Value Added Reference https://github.com/python/cpython/commit/72dde1016493c52abe857fc4a7bf6c40138b4114 Added Reference https://github.com/python/cpython/commit/9a23b753552afa28e3a2f4d8863572fc66479406 -
CVE Modified by [email protected]
Mar. 19, 2026
Action Type Old Value New Value Added Reference https://github.com/python/cpython/commit/7ad3093d76a748af55bdb1d2e8aad3638163b017 Added Reference https://github.com/python/cpython/commit/ae99fe3a33b43e303a05f012815cef60b611a9c7 -
CVE Modified by [email protected]
Mar. 13, 2026
Action Type Old Value New Value Added Reference https://github.com/python/cpython/commit/42d754e34c06e57ad6b8e7f92f32af679912d8ab -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Mar. 12, 2026
Action Type Old Value New Value Added CWE CWE-20 Added CWE CWE-74 Added CWE CWE-434 -
New CVE Received by [email protected]
Mar. 12, 2026
Action Type Old Value New Value Added 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. Added CVSS V4.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 Added Reference https://github.com/python/cpython/issues/141707 Added Reference https://github.com/python/cpython/pull/143934 Added Reference https://mail.python.org/archives/list/[email protected]/thread/EOMI5I66ZMKQ2INNFT6T7IAIKUGPZYIE/