cve.bz

CVE-2025-13462 python python: Injection

2.0 lowEPSS 0.2%Fix available

Low (2.0) in python python. EPSS 0.2% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

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

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
EPSS
0.2% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 8th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-03-12. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-20 Improper Input Validation
CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component (Injection)
CWE-434 Unrestricted Upload of File with Dangerous Type
OWASP Top 10
A05:2025 Injection, A06:2025 Insecure Design
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-13462 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-13462?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-13462?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-13462 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Python Software Foundation CPythonbefore 3.10.21
Python Software Foundation CPythonfrom 3.11.0 before 3.11.16
Python Software Foundation CPythonfrom 3.12.0 before 3.12.14
Python Software Foundation CPythonfrom 3.13.0 before 3.13.13
Python Software Foundation CPythonfrom 3.14.0 before 3.14.4
Python Software Foundation CPythonfrom 3.15.0a1 before 3.15.0a8

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11python3.93.9.2-1+deb11u7DLA-4583-1
Debian12python3.113.11.2-6+deb12u8DEBIAN-CVE-2025-13462
Debian13python3.133.13.5-2+deb13u1DEBIAN-CVE-2025-13462
Debian14python3.143.14.3-4DEBIAN-CVE-2025-13462
Ubuntu22.04:LTSpython3.103.10.12-1~22.04.16UBUNTU-CVE-2025-13462 USN-8509-1
Ubuntu24.04:LTSpython3.123.12.3-1ubuntu0.15UBUNTU-CVE-2025-13462 USN-8509-1
Ubuntu25.10python3.13, python3.14no fix listedUBUNTU-CVE-2025-13462
Ubuntu26.04:LTSpython3.143.14.4-1ubuntu0.1USN-8509-1
UbuntuPro:14.04:LTSpython2.7, python3.4, python3.5no fix listedUBUNTU-CVE-2025-13462
UbuntuPro:16.04:LTSpython2.7, python3.5no fix listedUBUNTU-CVE-2025-13462
UbuntuPro:18.04:LTSpython2.7, python3.6, python3.7 and 1 moreno fix listedUBUNTU-CVE-2025-13462
UbuntuPro:20.04:LTSpython2.7, python3.8, python3.9no fix listedUBUNTU-CVE-2025-13462
UbuntuPro:22.04:LTSpython2.7, python3.11no fix listedUBUNTU-CVE-2025-13462
Red Hathummingbird:1python3, python3.14, python3-idle and 13 more0:3.14.4-1.hum1RHSA-2026:7661
Red Hathummingbird:1python3.11, python3.11-idle, python3.11-libs and 4 more0:3.11.15-4.2.hum1RHSA-2026:11324
Red Hathummingbird:1python3.12, python3.12-idle, python3.12-libs and 4 more0:3.12.13-3.1.hum1RHSA-2026:10118
Red Hathummingbird:1python3.13, python3.13-idle, python3.13-libs and 6 more0:3.13.13-1.hum1RHSA-2026:7443
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 5 morepython311, python311-core, python311-documentation3.11.15-150400.9.85.1SUSE-SU-2026:1530-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Server 15 SP4-LTSS and 1 morepython310, python310-core3.10.20-150400.4.107.1SUSE-SU-2026:1376-1
SUSELinux Enterprise Module for Basesystem 15 SP7python311-core3.11.15-150600.3.53.1SUSE-SU-2026:1349-1
SUSELinux Enterprise Module for Package Hub 15 SP7python, python-base2.7.18-150000.111.1SUSE-SU-2026:1206-1
SUSELinux Enterprise Module for Public Cloud 15 SP4python311, python311-core3.11.15-150400.9.85.1SUSE-SU-2026:1530-1
SUSELinux Enterprise Module for Python 3 15 SP7python313, python313-core3.13.13-150700.4.45.1SUSE-SU-2026:1354-1
SUSELinux Enterprise Module for Python 3 15 SP7, Linux Enterprise Server 15 SP6-LTSS, Linux Enterprise Server for SAP Applications 15 SP6python311, python311-core3.11.15-150600.3.53.1SUSE-SU-2026:1349-1
SUSELinux Enterprise Server 12 SP5-LTSS, Linux Enterprise Server LTSS Extended Security 12 SP5python, python-doc, python-base2.7.18-33.74.1SUSE-SU-2026:1417-1
SUSELinux Enterprise Server 12 SP5-LTSS, Linux Enterprise Server LTSS Extended Security 12 SP5python3, python3-base3.4.10-25.180.1SUSE-SU-2026:1385-1
SUSELinux Enterprise Server 12 SP5-LTSS, Linux Enterprise Server LTSS Extended Security 12 SP5python36, python36-core3.6.15-108.1SUSE-SU-2026:1345-1
SUSELinux Enterprise Server 15 SP5-LTSS, Linux Enterprise Server for SAP Applications 15 SP5python39, python39-core3.9.25-150300.4.99.1SUSE-SU-2026:1296-1
SUSELinux Enterprise Server 15 SP6-LTSS, Linux Enterprise Server for SAP Applications 15 SP6python312, python312-core3.12.13-150600.3.53.1SUSE-SU-2026:1292-1
5 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.6python, python-doc, python-base2.7.18-150000.111.1SUSE-SU-2026:1206-1
openSUSELeap 15.6python310, python310-core, python310-documentation3.10.20-150400.4.107.1SUSE-SU-2026:1376-1
openSUSELeap 15.6python311, python311-core, python311-documentation3.11.15-150600.3.53.1SUSE-SU-2026:1349-1
openSUSELeap 15.6python312, python312-core, python312-documentation3.12.13-150600.3.53.1SUSE-SU-2026:1292-1
openSUSELeap 15.6python39, python39-core, python39-documentation3.9.25-150300.4.99.1SUSE-SU-2026:1296-1
openSUSELeap 16.0python313, python313-core, python313-nogil and 2 more3.13.13-160000.1.1openSUSE-SU-2026:20517-1
openSUSETumbleweedpython3103.10.20-3.1openSUSE-SU-2026:10477-1
openSUSETumbleweedpython3113.11.15-4.1openSUSE-SU-2026:10478-1
openSUSETumbleweedpython3123.12.13-4.1openSUSE-SU-2026:10479-1
openSUSETumbleweedpython3133.13.12-3.1openSUSE-SU-2026:10480-1
openSUSETumbleweedpython3143.14.3-4.1openSUSE-SU-2026:10481-1
openSUSETumbleweedpython3153.15.0~a7-3.1openSUSE-SU-2026:10469-1
Azure Linux3python-pyno fix listedAZL-109686
Azure Linux3python33.12.9-13AZL-80493
Alpaquita23python33.11.16-r0BELL-CVE-2025-13462
Alpaquita25python33.12.14-r0BELL-CVE-2025-13462
Alpaquitastreampython33.14.3-r1BELL-CVE-2025-13462
BellSoft Hardened Containers23python33.11.16-r0BELL-CVE-2025-13462
BellSoft Hardened Containers25python33.12.14-r0BELL-CVE-2025-13462
BellSoft Hardened Containersstreampython33.14.3-r1BELL-CVE-2025-13462

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpaquita · BellSoft Hardened Containers.

Red Hat

Red Hat rates this Low.

Red Hat's statement

A Low-impact flaw in Python’s tarfile module mishandles multi-block members. A local attacker could use a crafted tar archive to cause minor data integrity issues or unexpected file system changes under specific, high-complexity conditions.

Red Hat's mitigation

Avoid using Python's tarfile module to extract untrusted archives. If processing untrusted archives is required, delegate extraction to the system-level tar utility (via the subprocess module). For Python 3.12 or newer, you can instead enforce strict extraction filters using tarfile.data_filter to secure the module's extraction behavior.

ProductPackageStateAdvisory
Red Hat Hardened Imagespython3-12-main-3.12.13-3.1.hum1Fixed 2026-04-23RHSA-2026:10118
Red Hat Hardened Imagespython3-11-main-3.11.15-4.2.hum1Fixed 2026-04-28RHSA-2026:11324
Red Hat Hardened Imagespython3-13-main-3.13.13-1.hum1Fixed 2026-04-10RHSA-2026:7443
Red Hat Hardened Imagespython3-14-main-3.14.4-1.hum1Fixed 2026-04-11RHSA-2026:7661
Exploit Intelligenceexploit-intelligence-tech-preview/vulnerability-analysis-rhel9Fix deferred
Red Hat Enterprise Linux 10python3.12Fix deferred
Red Hat Enterprise Linux 10python3.14Fix deferred
Red Hat Enterprise Linux 6pythonFix deferred
Red Hat Enterprise Linux 7pythonFix deferred
Red Hat Enterprise Linux 7python3Fix deferred
Red Hat Enterprise Linux 8python3Fix deferred
Red Hat Enterprise Linux 8python3.12Fix deferred
Red Hat Enterprise Linux 8python36Fix deferred
Red Hat Enterprise Linux 9python3.12Fix deferred
Red Hat Enterprise Linux 9python3.14Fix deferred
Red Hat Enterprise Linux 9python3.9Fix deferred
Red Hat Enterprise Linux AI (RHEL AI) 3rhelai3/bootc-aws-cuda-rhel9Fix deferred
Red Hat Enterprise Linux AI (RHEL AI) 3rhelai3/bootc-azure-cuda-rhel9Fix deferred
Red Hat Enterprise Linux AI (RHEL AI) 3rhelai3/bootc-azure-rocm-rhel9Fix deferred
Red Hat Enterprise Linux AI (RHEL AI) 3rhelai3/bootc-cuda-rhel9Fix deferred
7 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-13462.

Attack patterns (CAPEC)

  • CAPEC-1 Accessing Functionality Not Properly Constrained by ACLs Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-74 (37), CWE-20 (51).

References

Check your stackJSON