CPython http.cookies Quadratic Complexity CPU Exhaustion (CVE20247592)
CVE-2024-7592 Published on August 19, 2024
Quadratic complexity parsing cookies with backslashes
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.
Vulnerability Analysis
CVE-2024-7592 is exploitable with network access, and does not require authorization privileges or user interaction. This vulnerability is considered to have a low attack complexity. An automatable proof of concept (POC) exploit exists. The potential impact of an exploit of this vulnerability is considered to have no impact on confidentiality and integrity, and a high impact on availability.
Weakness Type
What is a Resource Exhaustion Vulnerability?
The software does not properly control the allocation and maintenance of a limited resource, thereby enabling an actor to influence the amount of resources consumed, eventually leading to the exhaustion of available resources.
CVE-2024-7592 has been classified to as a Resource Exhaustion vulnerability or weakness.
Products Associated with CVE-2024-7592
You can be notified by email with stack.watch whenever vulnerabilities like CVE-2024-7592 are published in these products:
Affected Versions
Python Software Foundation CPython:- Before 3.8.20 is affected.
- Version 3.9.0 and below 3.9.20 is affected.
- Version 3.10.0 and below 3.10.15 is affected.
- Version 3.11.0 and below 3.11.10 is affected.
- Version 3.12.0 and below 3.12.6 is affected.
- Version 3.13.0a1 and below 3.13.0rc2 is affected.
- Before 3.8.20 is affected.
- Version 3.9.0 and below 3.9.20 is affected.
- Version 3.10.0 and below 3.10.15 is affected.
- Version 3.11.0 and below 3.11.10 is affected.
- Version 3.12.0 and below 3.12.6 is affected.
- Version 3.13.0a1 and below 3.13.0rc2 is affected.
Vulnerable Packages
The following package name and versions may be associated with CVE-2024-7592
| Package Manager | Vulnerable Package | Versions | Fixed In |
|---|---|---|---|
| pip | tornado | <= 6.4.1 | 6.4.2 |
Exploit Probability
EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.