BIT-python-min-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 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.

2

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.

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