BIT-libpython-2024-7592: Quadratic complexity parsing cookies with backslashes

Published Aug 19, 2024
·
Updated

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

1 affected component
Python Software Foundation CPython

Event History

Aug 19, 2024
CVE Published
via OSV·07:06 PM
Data Sourced
via OSV·07:06 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

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.

2

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.

3

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203