CVE-2025-13462 json
tarfile: Skip DIRTYPE normalization during GNU LONGNAME/LONGLINK handling
published 2026-03-12 7 mo ago modified 2026-08-13 2 mo ago also BIT-python-2025-13462 , BIT-python-min-2025-13462 , EUVD-2025-208613
- cvss
- 3.3
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 7%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- Python Software Foundation CPython 3.10.21, 3.11.16, 3.12.14, 3.13.13, 3.14.4, 3.15.0a8
- python3.11 Debian 12 3.11.2-6+deb12u8
- python3.13 Debian 13 3.13.5-2+deb13u1
- python3.14 Debian 14 3.14.3-4
debian advisories DEBIAN-CVE-2025-13462
- python3.10 Ubuntu 22.04 LTS 3.10.12-1~22.04.16
- python3.12 Ubuntu 24.04 LTS 3.12.3-1ubuntu0.15
ubuntu advisories UBUNTU-CVE-2025-13462
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- python3.11 hummingbird 1 3.11.15-4.2.hum1
- python3.11-idle hummingbird 1 3.11.15-4.2.hum1
- python3.11-libs hummingbird 1 3.11.15-4.2.hum1
- python3.11-test hummingbird 1 3.11.15-4.2.hum1
- python3.11-tkinter hummingbird 1 3.11.15-4.2.hum1
- python3.12 hummingbird 1 3.12.13-3.1.hum1
- python3.12-idle hummingbird 1 3.12.13-3.1.hum1
- python3.12-libs hummingbird 1 3.12.13-3.1.hum1
red hat advisories RHSA-2026:11324RHSA-2026:10118RHSA-2026:7661RHSA-2026:7443
- python311 Linux Micro 6.1 3.11.16-slfo.1.1_1.1
- python311-core Linux Micro 6.1 3.11.16-slfo.1.1_1.1
- python311 SLES for SAP 15 SP5, SLES for SAP 15 SP4, SLES 15 SP5-LTSS +6 more 3.11.15-150400.9.85.1
- python311-core SLES for SAP 15 SP5, SLES for SAP 15 SP4, SLES 15 SP5-LTSS +6 more 3.11.15-150400.9.85.1
- python311-documentation SLES for SAP 15 SP5, SLES for SAP 15 SP4, SLES 15 SP5-LTSS +5 more 3.11.15-150400.9.85.1
- python311 Linux Micro 6.1 3.11.15-slfo.1.1_3.1
- python311-core Linux Micro 6.1 3.11.15-slfo.1.1_3.1
- python310 SLES for SAP 15 SP4, SLES 15 SP4-LTSS, SLE High Performance Computing 15 SP4-LTSS +2 more 3.10.20-150400.4.107.1
suse advisories SUSE-SU-2026:4534-1SUSE-SU-2026:23743-1SUSE-SU-2026:1530-1SUSE-SU-2026:1417-1SUSE-SU-2026:21254-1SUSE-SU-2026:1385-1
- python313 openSUSE Leap 16.0 3.13.13-160000.1.1
- python313-core openSUSE Leap 16.0 3.13.13-160000.1.1
- python313-nogil openSUSE Leap 16.0 3.13.13-160000.1.1
- python313-documentation openSUSE Leap 16.0 3.13.13-160000.1.1
- python313-nogil-nogil-core openSUSE Leap 16.0 3.13.13-160000.1.1
- python310 openSUSE Tumbleweed 3.10.20-3.1
- python311 openSUSE Tumbleweed 3.11.15-4.1
- python312 openSUSE Tumbleweed 3.12.13-4.1
opensuse advisories openSUSE-SU-2026:20517-1openSUSE-SU-2026:10477-1openSUSE-SU-2026:10478-1openSUSE-SU-2026:10479-1openSUSE-SU-2026:10480-1openSUSE-SU-2026:10481-1
- github.com/python/cpython@42d754e commit
- github.com/python/cpython@7ad3093 commit
- github.com/python/cpython@ae99fe3 commit
- github.com/python/cpython@72dde10 commit
- github.com/python/cpython@9a23b75 commit
- github.com/python/cpython@d109507 commit
- github.com/python/cpython#143934 pull request
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2025-13462 updated cvss 2.5
cpython: cpython: `tarfile` module misinterprets crafted tar archives leading to data integrity issues
-
Red Hat Exploit Intelligence exploit-intelligence-tech-preview/vulnerability-analysis-rhel9 Red Hat Enterprise Linux 6 python, tkinter, python-libs, python-test, python-tools Red Hat Enterprise Linux 7 python, python3, tkinter, python-libs, python-test, python-tools, +4 more Red Hat Enterprise Linux 8 scipy, python3, python36, python3.12, python-nose, python-wheel, +31 more Red Hat Enterprise Linux 9 python3, python3.9, python3.12, python3.14, python3-idle, python3-libs, +16 more Red Hat Enterprise Linux 10 python3.12, python3.14affected: workaround, no fix available “Fix deferred”
+4 more productsfewer
Red Hat Enterprise Linux AI (RHEL AI) 3 rhelai3/bootc-cuda-rhel9, rhelai3/bootc-rocm-rhel9, rhelai3/bootc-gaudi-rhel9, rhelai3/bootc-aws-cuda-rhel9, rhelai3/bootc-gcp-cuda-rhel9, rhelai3/bootc-azure-cuda-rhel9, +1 more Red Hat OpenShift AI (RHOAI) rhoai/odh-workbench-codeserver-datascience-cpu-py312-rhel9 Red Hat OpenShift Dev Spaces devspaces/code-rhel9, devspaces/pluginregistry-rhel9 Red Hat Self-service automation portal 2 ansible-automation-platform/bootc-automation-portal-rhel9 -
Red Hat Hardened Images python3 3.14.4-1.hum1, python3.14 3.14.4-1.hum1, python3.13 3.13.13-1.hum1, python3-idle 3.14.4-1.hum1, python3-libs 3.14.4-1.hum1, python3-test 3.14.4-1.hum1, +22 morefixed: vendor fix RHSA-2026:7661
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 7 mo ago
Exploit prediction
0.18% chance of exploitation in the next 30 days, higher than 7% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 2.0 | 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 |
| CNA | 4.0 | 2.0 | 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/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 |
| NVD | 3.1 | 3.3 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N |
Affected products
- Python Software Foundation CPython
Classification
References
-
github.com
/python/cpython/pull/143934
patch, issue-tracking
-
github.com
/python/cpython/commit/42d754e34c06e57ad6b8e7f92f32af679912d8ab
patch
-
github.com
/python/cpython/commit/7ad3093d76a748af55bdb1d2e8aad3638163b017
patch
-
github.com
/python/cpython/commit/ae99fe3a33b43e303a05f012815cef60b611a9c7
patch
-
github.com
/python/cpython/commit/72dde1016493c52abe857fc4a7bf6c40138b4114
patch
-
github.com
/python/cpython/commit/9a23b753552afa28e3a2f4d8863572fc66479406
patch
-
github.com
/python/cpython/commit/d10950739a78f54d0718d88fb5a868374603c084
patch
-
mail.python.org
/archives/list/security-announce@python.org/thread/EOMI5I66ZMKQ2INNFT6T7IAIKUGPZYIE/
vendor-advisory, mailing-list
-
github.com
/python/cpython/issues/141707
issue-tracking
Sources
- CVE List CVE-2025-13462
- NVD CVE-2025-13462
- OSV BIT-python-2025-13462
- OSV BIT-python-min-2025-13462
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.