CVE-2024-52804
The algorithm used for parsing HTTP cookies in Tornado versions prior to 6.4.2 sometimes has quadratic complexity, leading to excessive CPU consumption when parsing maliciously-crafted cookie headers.
Does this matter?
High impact if exploited, but EPSS currently rates exploitation as unlikely (1.04%). Schedule it in the normal patch cycle and watch for a rise in EPSS or a public exploit.
Description
Tornado is a Python web framework and asynchronous networking library. The algorithm used for parsing HTTP cookies in Tornado versions prior to 6.4.2 sometimes has quadratic complexity, leading to excessive CPU consumption when parsing maliciously-crafted cookie headers. This parsing occurs in the event loop thread and may block the processing of other requests. Version 6.4.2 fixes the issue.
- CVSS 3.1
- 7.5 HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS
- 1.04% probability · 62th percentile
- CISA KEV
- Not listed
- Weakness
- CWE-400, CWE-770
- Affected
- tornadoweb/tornado
- Source
- security-advisories@github.com
References
- https://github.com/advisories/GHSA-7pwv-g7hj-39prNot Applicable
- https://github.com/tornadoweb/tornado/commit/d5ba4a1695fbf7c6a3e54313262639b198291533Patch
- https://github.com/tornadoweb/tornado/security/advisories/GHSA-8w49-h785-mj3cThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2025/01/msg00000.html
Source: NVD record, EPSS from FIRST.org, KEV from CISA. Refreshed daily.