Skip to main content
VulnerabilityPublished Updated

CVE-2024-7592: Python Software Foundation CPython · Uncontrolled Resource Consumption

Affects Python Software Foundation CPythonSource CVE Database V5

0

Not known to be exploited · CVSS 7.5 High.

Data as of 26 Oct 2026, 09:15 UTC

CVSS 3.1 base score
7.5High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
2.3% chance of exploitation in 30 days – higher than 83% 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 19 Aug 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 26 Oct 2026.

What to do

Affected software

ProductAffectedFixed in
GitHubpython/cpythonpkg:github/python/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

1. Monitor official Python Software Foundation channels for patches addressing CVE-2024-7592 and apply updates promptly once available. 2. As an interim measure, implement input validation to detect and reject suspicious cookie values containing excessive backslashes or unusual quoting patterns before they reach the vulnerable parser. 3. Deploy rate limiting and anomaly detection on HTTP requests to mitigate potential DoS attempts exploiting this vulnerability. 4. Consider using web application firewalls (WAFs) configured to block or challenge suspicious cookie headers. 5. For critical services, isolate or sandbox components that parse cookies to limit the impact of resource exhaustion. 6. Review and update incident response plans to include detection and mitigation strategies for resource exhaustion attacks. 7. Encourage developers to audit and refactor cookie parsing logic if custom implementations exist, to avoid similar complexity issues.

Description

There is a LOW severity vulnerability affecting CPython, specifically the 'http.cookies' standard library module. When parsing cookies that contained backslashes for quoted characters in the cookie value, the parser would use an algorithm with quadratic complexity, resulting in excess CPU resources being used while parsing the value.

References

Community reviews

Loading reviews…