Skip to main content
Live Webinar with SANS (June 25)— Agentic CTI Automation for Fun & ProfitRegister Free
Mallory
Unrated

Infinite loop DoS in Python tarfile streaming mode

IdentifiersCVE-2026-11972CWE-835

CVE-2026-11972 is a high-severity denial-of-service vulnerability in CPython's tarfile module. When parsing a tar archive in streaming mode using mode="r|", the module does not properly handle end-of-file conditions. A crafted archive can trigger pathological parsing behavior, causing archive processing to take exponentially longer or enter an infinite loop. The issue is specific to tarfile usage in streaming mode and affects applications that accept and parse attacker-controlled tar archives with this mode enabled.

Share:
For your environment

Are you exposed to this one?

Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.

ANALYST BRIEF

Impact, mitigation & remediation

What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation can cause the affected Python process to hang or consume excessive CPU while parsing a crafted tar archive. This results in denial of service against applications or services that process untrusted tar files in tarfile streaming mode. Based on the provided content, the issue is remotely exploitable where an attacker can supply a malicious archive to a vulnerable service.

Mitigation

If you can’t patch tonight, do this now.

Avoid using tarfile streaming mode (mode="r|") for untrusted archives where feasible until patched versions are deployed. Review code paths that parse attacker-supplied tar archives and prefer non-streaming handling or additional safeguards such as strict processing timeouts, CPU/resource limits, and isolation for archive-processing workers to reduce denial-of-service exposure.

Remediation

Patch, then assume compromise.

Upgrade CPython to a vendor-fixed release from the Python Software Foundation that includes the tarfile EOF-handling correction for CVE-2026-11972. Review all applications and services that use the tarfile module in streaming mode and update those runtimes to patched versions as they become available.
PUBLIC EXPLOITS

Exploits

No public exploits tracked yet. Mallory keeps watching.

VALID 0 / 0 TOTALView more in app

No public exploit code observed for this vulnerability.

EXPOSURE SURFACE

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
PythonCpythonapplication
PythonPythonapplication

Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.

What this page doesn’t show

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, which detections to deploy, and what to do tonight.
Exposure mapping

Query your assets running an affected version, and investigate the blast radius.

Threat actor evidence

Every observed campaign linking this CVE to a named adversary.

Associated malware

Malware families riding this exploit, with evidence and IOCs.

Detection signatures

YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.

Vendor-by-vendor mapping

Cross-references every affected SKU, including bundled OEM variants.

Social activity4

Community discussion across Reddit, Mastodon, and other social sources.