ADVISORIES

CVE Program

CNA-CVE-2024-7592

Quadratic complexity parsing cookies with backslashes

Details

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 packages

EcosystemPackageAffected versions
Pythonpython
All versions before 3.8.20 (fixed in 3.8.20)
From 3.9.0 before 3.9.20 (fixed in 3.9.20)
From 3.10.0 before 3.10.15 (fixed in 3.10.15)
From 3.11.0 before 3.11.10 (fixed in 3.11.10)
From 3.12.0 before 3.12.6 (fixed in 3.12.6)
From 3.13.0a1 before 3.13.0rc2 (fixed in 3.13.0rc2)

References