BIT-libpython-2024-7592: 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.
Affected Software
Event History
Frequently Asked Questions
What condition is required to trigger the excessive CPU use?
The application must parse a cookie value containing backslashes used for quoted characters through CPython's http.cookies module. The vulnerable parsing behavior has quadratic complexity for such values.
Can this be exploited remotely without authentication or user interaction?
The provided vector indicates network reachability, low attack complexity, no required privileges, and no user interaction. Exposure therefore depends on whether an application accepts attacker-controlled cookies and parses them with http.cookies.
What is the practical impact?
The reported impact is excessive CPU consumption while parsing the crafted cookie value, which can cause an availability denial of service. No confidentiality or integrity impact is indicated by the supplied vector.