BIT-python-min-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 conditions are required to trigger the excessive CPU use?
An attacker needs to cause CPython's http.cookies module to parse a cookie value containing backslashes used for quoted characters. The provided vector indicates network-reachable exploitation with low attack complexity and no privileges or user interaction required.
What is the likely impact on an affected service?
The issue can consume excessive CPU while parsing a crafted cookie value, creating a denial-of-service condition. The supplied impact metrics indicate availability impact, with no stated confidentiality or integrity impact.