{"id":"CVE-2024-7592","state":"PUBLISHED","title":"Quadratic complexity parsing cookies with backslashes","description":"There is a LOW severity vulnerability affecting CPython, specifically the\n'http.cookies' standard library module.\n\n\nWhen parsing cookies that contained backslashes for quoted characters in\nthe cookie value, the parser would use an algorithm with quadratic\ncomplexity, resulting in excess CPU resources being used while parsing the\nvalue.","publishedAt":"2024-08-19T19:06:45.311Z","updatedAt":"2025-11-03T22:32:52.863Z","severity":{"score":7.5,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"CISA-ADP"},"assigner":"PSF","products":["Python Software Foundation CPython"],"affected":[{"vendor":"Python Software Foundation","product":"CPython","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"3.8.20","versionType":"python"},{"version":"3.9.0","status":"affected","lessThan":"3.9.20","versionType":"python"},{"version":"3.10.0","status":"affected","lessThan":"3.10.15","versionType":"python"},{"version":"3.11.0","status":"affected","lessThan":"3.11.10","versionType":"python"},{"version":"3.12.0","status":"affected","lessThan":"3.12.6","versionType":"python"},{"version":"3.13.0a1","status":"affected","lessThan":"3.13.0rc2","versionType":"python"}],"repo":"https://github.com/python/cpython"}],"references":["https://github.com/python/cpython/pull/123075","https://github.com/python/cpython/issues/123067","https://mail.python.org/archives/list/security-announce@python.org/thread/HXJAAAALNUNGCQUS2W7WR6GFIZIHFOOK/","https://github.com/python/cpython/commit/391e5626e3ee5af267b97e37abc7475732e67621","https://github.com/python/cpython/commit/dcc3eaef98cd94d6cb6cb0f44bd1c903d04f33b1","https://github.com/python/cpython/commit/a77ab24427a18bff817025adb03ca920dc3f1a06","https://github.com/python/cpython/commit/b2f11ca7667e4d57c71c1c88b255115f16042d9a","https://github.com/python/cpython/commit/d4ac921a4b081f7f996a5d2b101684b67ba0ed7f","https://github.com/python/cpython/commit/d662e2db2605515a767f88ad48096b8ac623c774","https://github.com/python/cpython/commit/44e458357fca05ca0ae2658d62c8c595b048b5ef","https://security.netapp.com/advisory/ntap-20241018-0006/","https://lists.debian.org/debian-lts-announce/2024/12/msg00000.html"],"weaknesses":["CWE-400"],"ingestedAt":"2026-10-29T20:08:20.985Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/7xxx/CVE-2024-7592.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-7592","state":"PUBLISHED","datePublished":"2024-08-19T19:06:45.311Z","dateUpdated":"2025-11-03T22:32:52.863Z","assignerShortName":"PSF","assignerOrgId":"28c92f92-d60d-412d-b760-e73465c3df22","dateReserved":"2024-08-07T15:53:07.135Z"},"containers":{"cna":{"title":"Quadratic complexity parsing cookies with backslashes","descriptions":[{"lang":"en","value":"There is a LOW severity vulnerability affecting CPython, specifically the\n'http.cookies' standard library module.\n\n\nWhen parsing cookies that contained backslashes for quoted characters in\nthe cookie value, the parser would use an algorithm with quadratic\ncomplexity, resulting in excess CPU resources being used while parsing the\nvalue."}],"affected":[{"vendor":"Python Software Foundation","product":"CPython","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"3.8.20","versionType":"python"},{"version":"3.9.0","status":"affected","lessThan":"3.9.20","versionType":"python"},{"version":"3.10.0","status":"affected","lessThan":"3.10.15","versionType":"python"},{"version":"3.11.0","status":"affected","lessThan":"3.11.10","versionType":"python"},{"version":"3.12.0","status":"affected","lessThan":"3.12.6","versionType":"python"},{"version":"3.13.0a1","status":"affected","lessThan":"3.13.0rc2","versionType":"python"}],"repo":"https://github.com/python/cpython"}],"references":[{"url":"https://github.com/python/cpython/pull/123075","tags":["patch"]},{"url":"https://github.com/python/cpython/issues/123067","tags":["issue-tracking"]},{"url":"https://mail.python.org/archives/list/security-announce@python.org/thread/HXJAAAALNUNGCQUS2W7WR6GFIZIHFOOK/","tags":["vendor-advisory"]},{"url":"https://github.com/python/cpython/commit/391e5626e3ee5af267b97e37abc7475732e67621","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/dcc3eaef98cd94d6cb6cb0f44bd1c903d04f33b1","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/a77ab24427a18bff817025adb03ca920dc3f1a06","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/b2f11ca7667e4d57c71c1c88b255115f16042d9a","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/d4ac921a4b081f7f996a5d2b101684b67ba0ed7f","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/d662e2db2605515a767f88ad48096b8ac623c774","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/44e458357fca05ca0ae2658d62c8c595b048b5ef","tags":["patch"]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-400","description":"CWE-400 Uncontrolled Resource Consumption","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"PSF","orgId":"28c92f92-d60d-412d-b760-e73465c3df22","dateUpdated":"2025-01-31T19:55:12.119Z"},"datePublic":"2024-08-16T16:15:00.000Z","source":{"discovery":"UNKNOWN"},"x_generator":{"engine":"Vulnogram 0.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","affected":[{"vendor":"python","product":"cpython","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"3.8.20","versionType":"python"},{"version":"3.9.0","status":"affected","lessThan":"3.9.20","versionType":"python"},{"version":"3.10.0","status":"affected","lessThan":"3.10.15","versionType":"python"},{"version":"3.11.0","status":"affected","lessThan":"3.11.10","versionType":"python"},{"version":"3.12.0","status":"affected","lessThan":"3.12.6","versionType":"python"},{"version":"3.13.0a1","status":"affected","lessThan":"3.13.0rc2","versionType":"python"}],"cpes":["cpe:2.3:a:python:cpython:*:*:*:*:*:*:*:*"]}],"metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":7.5,"attackVector":"NETWORK","baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","integrityImpact":"NONE","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"NONE","confidentialityImpact":"NONE"}},{"other":{"type":"ssvc","content":{"timestamp":"2024-09-03T17:21:02.520596Z","id":"CVE-2024-7592","options":[{"Exploitation":"poc"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-09-09T20:53:12.739Z"}},{"title":"CVE Program Container","references":[{"url":"https://security.netapp.com/advisory/ntap-20241018-0006/"},{"url":"https://lists.debian.org/debian-lts-announce/2024/12/msg00000.html"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2025-11-03T22:32:52.863Z"}}]}}}