CVE-2024-7592: Quadratic complexity parsing cookies with backslashes
CVE-2024-7592 affects 180 listed versions of Python in the Dawnsentry catalogue.
Affected products and versions
The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.
Python
180 of 250 listed versions are affected. Fixed in 3.12.6, 3.11.10, 3.10.15, 3.9.20, 3.8.20. The newest release, 3.15.2, is not affected.
3.12.5 3.12.4 3.12.3 3.12.2 3.11.9 3.11.8 3.11.7 3.11.6 3.11.5 3.11.4 3.10.14 3.10.13 3.10.12 3.10.11 3.10.10 3.10.9 3.10.8 3.9.19 3.9.18 3.9.17 3.9.16 3.9.15 3.9.14 3.9.13 3.9.12 3.9.11 3.8.19 3.8.18 3.8.17 3.8.16 3.8.15 3.8.14 3.8.13 3.8.12 3.8.11 3.8.10 3.8.9 3.8.8 3.8.7 3.8.6 3.7.17 3.7.16 3.7.15 3.7.14 3.7.13 3.7.12 3.7.11 3.7.10 3.7.9 3.7.8 3.7.7 3.7.6 3.7.5 3.7.4 3.7.3 3.6.16 3.6.15 3.6.14 3.6.13 3.6.12 and 120 more
What it is
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.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H (NVD)
Published by Psf on 19 August 2024. Last changed 17 June 2026.
Sources
Check one version you run: look CVE-2024-7592 up, or pick a product and version in the quick lookup.
Updated 2 December 2026.