Vulnerability · Published Nov 22, 2024 · Assigned by GitHub_M
CVE-2024-52804Tornado has HTTP cookie parsing DoS vulnerability
High 7.5
In plain English
A high-severity uncontrolled resource consumption in tornado from tornadoweb. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.0% (higher than 64% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | pcs | 0.10.18-2.el8_10.4.alma.1 | ALSA-2025:2872 |
| AlmaLinux:8 | pcs-snmp | 0.10.18-2.el8_10.4.alma.1 | ALSA-2025:2872 |
| AlmaLinux:9 | python3-tornado | 6.4.2-1.el9_5 | ALSA-2024:10590 |
| Debian:12 | python-tornado | 6.2.0-3+deb12u1 | DEBIAN-CVE-2024-52804 |
| Debian:13 | python-tornado | 6.4.2-1 | DEBIAN-CVE-2024-52804 |
| Debian:14 | python-tornado | 6.4.2-1 | DEBIAN-CVE-2024-52804 |
| PyPI | tornado | 6.4.2 | GHSA-8w49-h785-mj3c |
| PyPI | tornado | 6.4.2 | PYSEC-2026-1975 |
| Rocky Linux:8 | pcs | 0:0.10.18-2.el8_10.4 | RLSA-2025:2872 |
| Rocky Linux:9 | pcs | 0:0.11.8-1.el9_5.2 | RLSA-2025:2471 |
| Rocky Linux:9 | python-tornado | 0:6.4.2-1.el9_5 | RLSA-2024:10590 |
| Ubuntu:24.04:LTS | python-tornado | 6.4.0-1ubuntu0.1 | UBUNTU-CVE-2024-52804 |
| Ubuntu:24.04:LTS | python-tornado | 6.4.0-1ubuntu0.1 | USN-7150-1 |
| Ubuntu:25.10 | python-tornado | 6.4.2-1 | UBUNTU-CVE-2024-52804 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| tornadoweb | tornado | < 6.4.2 |
Weakness: CWE-400, CWE-770 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
References
- https://github.com/tornadoweb/tornado/security/advisories/GHSA-8w49-h785-mj3c x_refsource_CONFIRM
- https://github.com/tornadoweb/tornado/commit/d5ba4a1695fbf7c6a3e54313262639b198291533 x_refsource_MISC
- https://github.com/advisories/GHSA-7pwv-g7hj-39pr x_refsource_MISC
- https://lists.debian.org/debian-lts-announce/2025/01/msg00000.html