CVE-2024-7592: Python Software Foundation CPython · Uncontrolled Resource Consumption
Affects Python Software Foundation CPythonSource CVE Database V5
Not known to be exploited · CVSS 7.5 High.
Data as of 26 Oct 2026, 09:15 UTC
- 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:HExploitation evidence
Disclosed: evidence found.
CVE published 19 Aug 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by 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
| Product | Affected | Fixed in |
|---|---|---|
GitHubpython/cpythonpkg:github/python/cpythonOther threats | Affected
| 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
- github.com/python/cpython/pull/123075 (opens in a new tab)
- github.com/python/cpython/issues/123067 (opens in a new tab)
- mail.python.org/archives/list/security-announce@python.org/thread/HXJAAAALNUNGCQUS2W7WR6GFIZIHFOOK/ (opens in a new tab)
- github.com/python/cpython/commit/391e5626e3ee5af267b97e37abc7475732e67621 (opens in a new tab)
- github.com/python/cpython/commit/dcc3eaef98cd94d6cb6cb0f44bd1c903d04f33b1 (opens in a new tab)
- github.com/python/cpython/commit/a77ab24427a18bff817025adb03ca920dc3f1a06 (opens in a new tab)
- github.com/python/cpython/commit/b2f11ca7667e4d57c71c1c88b255115f16042d9a (opens in a new tab)
- github.com/python/cpython/commit/d4ac921a4b081f7f996a5d2b101684b67ba0ed7f (opens in a new tab)
- github.com/python/cpython/commit/d662e2db2605515a767f88ad48096b8ac623c774 (opens in a new tab)
- github.com/python/cpython/commit/44e458357fca05ca0ae2658d62c8c595b048b5ef (opens in a new tab)
- security.netapp.com/advisory/ntap-20241018-0006/ (opens in a new tab)
- lists.debian.org/debian-lts-announce/2024/12/msg00000.html (opens in a new tab)