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.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)1.0%top 35.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
AlmaLinux:8pcs0.10.18-2.el8_10.4.alma.1ALSA-2025:2872
AlmaLinux:8pcs-snmp0.10.18-2.el8_10.4.alma.1ALSA-2025:2872
AlmaLinux:9python3-tornado6.4.2-1.el9_5ALSA-2024:10590
Debian:12python-tornado6.2.0-3+deb12u1DEBIAN-CVE-2024-52804
Debian:13python-tornado6.4.2-1DEBIAN-CVE-2024-52804
Debian:14python-tornado6.4.2-1DEBIAN-CVE-2024-52804
PyPItornado6.4.2GHSA-8w49-h785-mj3c
PyPItornado6.4.2PYSEC-2026-1975
Rocky Linux:8pcs0:0.10.18-2.el8_10.4RLSA-2025:2872
Rocky Linux:9pcs0:0.11.8-1.el9_5.2RLSA-2025:2471
Rocky Linux:9python-tornado0:6.4.2-1.el9_5RLSA-2024:10590
Ubuntu:24.04:LTSpython-tornado6.4.0-1ubuntu0.1UBUNTU-CVE-2024-52804
Ubuntu:24.04:LTSpython-tornado6.4.0-1ubuntu0.1USN-7150-1
Ubuntu:25.10python-tornado6.4.2-1UBUNTU-CVE-2024-52804

Affected products (as reported)

VendorProductVersions
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