Skip to main content
CVE-2024-6232VulnerabilityPublished Updated

CVE-2024-6232: Python Software Foundation CPython · ReDoS

Affects Python Software Foundation CPythonSource CVE Database V5

0

Not known to be exploited · CVSS 7.5 High.

Data as of 25 Oct 2026, 19:02 UTC

CVSS 3.1 base score
7.5High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
2.2% chance of exploitation in 30 days – higher than 82% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 3 Sep 2024

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-25.

What to do

Affected software

ProductAffectedFixed in
PyPIcpythonpkg:pypi/cpythonOther threatsAffected
  • =0
  • =3.9.0
  • =3.10.0
  • =3.11.0
  • =3.12.0
  • =3.13.0
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Immediate mitigation involves restricting or sanitizing tar archive inputs from untrusted sources to prevent processing malicious files. Organizations should implement resource limits (CPU time, memory) on processes handling tarfile extraction to reduce impact from potential ReDoS attempts. Monitoring and alerting on abnormal CPU usage during tar processing can help detect exploitation attempts. Since no official patches are linked yet, tracking Python Software Foundation updates and applying patches promptly once released is critical. Where feasible, consider using alternative libraries or tools for tar archive handling that are not vulnerable. For CI/CD pipelines or automated systems, introduce validation steps to verify archive integrity and origin before processing. Additionally, applying network-level controls to limit exposure of services that accept tar archives can reduce attack surface.

Description

There is a MEDIUM severity vulnerability affecting CPython. Regular expressions that allowed excessive backtracking during tarfile.TarFile header parsing are vulnerable to ReDoS via specifically-crafted tar archives.

References

Community reviews

Loading reviews…