CVE-2024-52804
Tornado has HTTP cookie parsing DoS vulnerability
Reported by github_m · Published November 22, 2024
tornado is fixed in 6.4.2 (PyPI)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| tornado | PyPI | 6.4.2 |
| python3-tornado-doc | Amazon Linux | 5.0.2-4.amzn2.0.4 |
| python3-tornado | Amazon Linux | 6.1.0-2.amzn2023.0.4, 5.0.2-4.amzn2.0.4 |
| kubeflow-pipelines-visualization-server | Wolfi | 2.3.0-r4 |
| airflow | Wolfi | 2.10.3-r2 |
| py3-tornado | Chainguard | 6.4.2-r0 |
| python-tornado-doc | Amazon Linux | 6.1.0-2.amzn2023.0.4 |
| dask-gateway | Chainguard | 2024.1.0-r12 |
| dask-gateway | Wolfi | 2024.1.0-r12 |
| airflow | Chainguard | 2.10.3-r2 |
| py3-tornado | Wolfi | 6.4.2-r0 |
| kubeflow-pipelines-visualization-server | Chainguard | 2.3.0-r4 |
1 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| tornadoweb | tornado | < 6.4.2 |
| amazon:2 | python3-tornado-doc | 0 |
| amazon:2023 | python3-tornado | 0 |
| wolfi | kubeflow-pipelines-visualization-server | 0 |
| wolfi | airflow | 0 |
| chainguard | py3-tornado | 0 |
| PyPI | tornado | 0 |
| tornadoweb | tornado | 0 |
| amazon:2023 | python-tornado-doc | 0 |
| chainguard | dask-gateway | 0 |
| wolfi | dask-gateway | 0 |
| chainguard | airflow | 0 |
| wolfi | py3-tornado | 0 |
| chainguard | kubeflow-pipelines-visualization-server | 0 |
| amazon:2 | python3-tornado | 0 |
| tornadoweb | tornado | 0 |
Timeline
- Nov 22, 2024 CVE Published
- Nov 23, 2024 EPSS Score (30 in total, the first dated here)
- Mar 16, 2025 Coalition ESS Score (10 in total, the first dated here)
- Jan 1, 2026 Security Advisory (14 in total, the first dated here)
- Aug 10, 2026 Distribution Patch (12 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-52804
vulnetix vdb fixes CVE-2024-52804
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-52804/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
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 url
- https://nvd.nist.gov/vuln/detail/CVE-2024-52804 advisory
- https://github.com/advisories/GHSA-8w49-h785-mj3c advisory
- https://github.com/tornadoweb/tornado url