tornadoweb/tornado · Security
Tornado has an HTTP cookie parsing DoS vulnerability
- GHSA ID
- GHSA-8w49-h785-mj3c
- CVE ID
- CVE-2024-52804
- Severity
- high
- Published
- Updated
- CVSS
- 7.5 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- CVSS v3
- 7.5 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Description
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.
See also CVE-2024-7592 for a similar vulnerability in cpython.
CWEs
- CWE-400 · Uncontrolled Resource Consumption
- CWE-770 · Allocation of Resources Without Limits or Throttling
References
- https://github.com/tornadoweb/tornado/security/advisories/GHSA-8w49-h785-mj3c ↗
- https://nvd.nist.gov/vuln/detail/CVE-2024-52804 ↗
- https://github.com/tornadoweb/tornado/commit/d5ba4a1695fbf7c6a3e54313262639b198291533 ↗
- https://lists.debian.org/debian-lts-announce/2025/01/msg00000.html ↗
- https://github.com/advisories/GHSA-8w49-h785-mj3c ↗