cve.bz

CVE-2026-11972 python software foundation cpython: Unchecked Return Value

8.2 highEPSS 0.7%

High (8.2) in python software foundation cpython. EPSS 0.7% estimated probability of exploitation activity in the next 30 days.

On this page
When using the "tarfile" module with a file opened in "streaming mode" (mode="r|") the tarfile module did not properly handle EOF, making archive parsing take exponentially longer.

Severity

CVSS 4.0

8.2 high
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
EPSS
0.7% (unchanged from 0.7% a week ago; 0.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 55th 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-06-24. 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-252 Unchecked Return Value
CWE-606 Unchecked Input for Loop Condition
CWE-770 Allocation of Resources Without Limits or Throttling
OWASP Top 10
A10:2025 Mishandling of Exceptional Conditions
Published
Modified
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-11972 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-11972?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-11972?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-2026-11972 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.15
Python Software Foundation CPythonfrom 3.14.0 before 3.14.7
Python Software Foundation CPythonfrom 3.15.0a1 before 3.15.0b4

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12pypy3, python3.11no fix listedDEBIAN-CVE-2026-11972
Debian13pypy3no fix listedDEBIAN-CVE-2026-11972
Debian13python3.133.13.5-2+deb13u5DEBIAN-CVE-2026-11972
Debian14pypy38.0.0+dfsg-1DEBIAN-CVE-2026-11972
Debian14python3.143.14.7-1DEBIAN-CVE-2026-11972
Ubuntu22.04:LTSpython3.10no fix listedUBUNTU-CVE-2026-11972
Ubuntu24.04:LTSpython3.12no fix listedUBUNTU-CVE-2026-11972
Ubuntu25.10python3.13, python3.14no fix listedUBUNTU-CVE-2026-11972
Ubuntu26.04:LTS, 26.10python3.14no fix listedUBUNTU-CVE-2026-11972
UbuntuPro:14.04:LTSpython2.7, python3.4, python3.5no fix listedUBUNTU-CVE-2026-11972
UbuntuPro:16.04:LTSpython2.7, python3.5no fix listedUBUNTU-CVE-2026-11972
UbuntuPro:18.04:LTSpython2.7, python3.6, python3.7 and 1 moreno fix listedUBUNTU-CVE-2026-11972
UbuntuPro:20.04:LTSpython2.7, python3.8, python3.9no fix listedUBUNTU-CVE-2026-11972
UbuntuPro:22.04:LTSpython2.7, python3.11no fix listedUBUNTU-CVE-2026-11972
Red Hathummingbird:1python3, python3.14, python3-idle and 13 more0:3.14.7-1.hum1RHSA-2026:54534
Red Hathummingbird:1python3.11, python3.11-idle, python3.11-libs and 4 more0:3.11.15-4.4.hum1RHSA-2026:35807
Red Hathummingbird:1python3.12, python3.12-idle, python3.12-libs and 4 more0:3.12.13-3.3.hum1RHSA-2026:35813
Red Hathummingbird:1python3.13, python3.13-idle, python3.13-libs and 6 more0:3.13.14-1.2.hum1RHSA-2026:35812
Red Hathummingbird:1python3.13, python3.13-idle, python3.13-libs and 6 more0:3.13.15-1.hum1RHSA-2026:54554
Red Hathummingbird:1python3.14, python3.14-idle, python3.14-libs and 11 more0:3.14.6-1.2.hum1RHSA-2026:35806
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy, saltbundlepy-core3.11.15-90002.4.15.1SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-cffi1.17.1-90002.3.6.2SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-cryptography3.3.2-90002.3.6.2SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-cssselect1.3.0-90002.3.6.2SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-editables0.5-90002.3.3.2SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-exceptiongroup, saltbundlepy-exceptiongroup-test1.2.2-90002.3.3.2SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-flit-core3.12.0-90002.3.3.1SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-hatch-fancy-pypi-readme, saltbundlepy-hatch-fancy-pypi-readme-test25.1.0-90002.3.3.1SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-hatch-vcs, saltbundlepy-hatch-vcs-test0.5.0-90002.3.3.1SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-hatchling1.31.0-90002.3.3.1SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-idna3.10-90002.3.6.2SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-iniconfig2.1.0-90002.3.3.1SUSE-SU-2026:4582-1
139 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 16.0python313, python313-core, python313-nogil and 2 more3.13.14-160000.2.1openSUSE-SU-2026:21595-1
openSUSETumbleweedpython3103.10.20-8.1openSUSE-SU-2026:11426-1
openSUSETumbleweedpython3113.11.15-8.1openSUSE-SU-2026:11427-1
openSUSETumbleweedpython3123.12.13-8.1openSUSE-SU-2026:11428-1
openSUSETumbleweedpython3133.13.14-2.1openSUSE-SU-2026:11534-1
openSUSETumbleweedpython3143.14.7-1.1openSUSE-SU-2026:11597-1
openSUSETumbleweedpython3153.15.0~b4-1.1openSUSE-SU-2026:11429-1
Alpinev3.21, v3.22, v3.23python33.12.14-r0ALPINE-CVE-2026-11972
Alpinev3.24python33.14.7-r0ALPINE-CVE-2026-11972
Azure Linux3python33.12.9-14AZL-91248
Alpaquita23python33.11.15-r5BELL-CVE-2026-11972
Alpaquita25python33.12.13-r5BELL-CVE-2026-11972
Alpaquitastreampython33.14.5-r4BELL-CVE-2026-11972
BellSoft Hardened Containers23python33.11.15-r5BELL-CVE-2026-11972
BellSoft Hardened Containers25python33.12.13-r5BELL-CVE-2026-11972
BellSoft Hardened Containersstreampython33.14.5-r4BELL-CVE-2026-11972

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; the Alpine secdb, CC BY-SA 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 · Alpine · Alpaquita · BellSoft Hardened Containers.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

A flaw was found in the Python tarfile module. When processing a tar archive in streaming mode (mode='r|'), the _Stream.seek function does not properly check for end-of-file, which can cause an infinite loop when processing a specially crafted archive. Red Hat ships Python as part of many products, and applications using tarfile's streaming mode are potentially affected by this denial of service vulnerability.

Red Hat's mitigation

Avoid using tarfile streaming mode (mode='r|') with untrusted tar archives. Use the standard file-based mode (mode='r') instead where possible.

ProductPackageStateAdvisory
Red Hat Hardened Imagespython3-14-main-3.14.6-1.2.hum1Fixed 2026-07-05RHSA-2026:35806
Red Hat Hardened Imagespython3-11-main-3.11.15-4.4.hum1Fixed 2026-07-05RHSA-2026:35807
Red Hat Hardened Imagespython3-13-main-3.13.14-1.2.hum1Fixed 2026-07-05RHSA-2026:35812
Red Hat Hardened Imagespython3-12-main-3.12.13-3.3.hum1Fixed 2026-07-05RHSA-2026:35813
Red Hat Hardened Imagespython3-14-main-3.14.7-1.hum1Fixed 2026-08-13RHSA-2026:54534
Red Hat Hardened Imagespython3-13-main-3.13.15-1.hum1Fixed 2026-08-13RHSA-2026:54554
Exploit Intelligenceexploit-intelligence-tech-preview/vulnerability-analysis-rhel9Fix deferred
Red Hat AI Inference Serverrhaii/model-opt-cuda-rhel9Fix deferred
Red Hat AI Inference Serverrhaiis/model-opt-cuda-rhel9Fix deferred
Red Hat AI Inference Serverrhaiis/vllm-cpu-rhel9Fix deferred
Red Hat AI Inference Serverrhaiis/vllm-cuda-rhel9Fix deferred
Red Hat AI Inference Serverrhaiis/vllm-neuron-rhel9Fix deferred
Red Hat AI Inference Serverrhaiis/vllm-rocm-rhel9Fix deferred
Red Hat AI Inference Serverrhaiis/vllm-spyre-rhel9Fix deferred
Red Hat AI Inference Serverrhaiis/vllm-tpu-rhel9Fix deferred
Red Hat AI Inference Serverrhaii/vllm-cpu-rhel9Fix deferred
Red Hat AI Inference Serverrhaii/vllm-cuda-rhel9Fix deferred
Red Hat AI Inference Serverrhaii/vllm-gaudi-rhel9Fix deferred
Red Hat AI Inference Serverrhaii/vllm-neuron-rhel9Fix deferred
Red Hat AI Inference Serverrhaii/vllm-rocm-rhel9Fix deferred
86 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-2026-11972.

Attack patterns (CAPEC)

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

References

Check your stackJSON