Skip to main content
← All vulnerabilities
CVE-2024-7592

Quadratic complexity parsing cookies with backslashes

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 3.8.20, 3.9.20, 3.10.15, 3.11.10, 3.12.6, and 1 more
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: yes
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • Python Software Foundation CPython

    fixed in 3.8.20; From 3.9.0 · fixed in 3.9.20; From 3.10.0 · fixed in 3.10.15; From 3.11.0 · fixed in 3.11.10; From 3.12.0 · fixed in 3.12.6; From 3.13.0a1 · fixed in 3.13.0rc2

References 10

GitHub · python/cpython

mail.python.org