GitHub Advisoryadvisory · PyPI
GHSA-8w49-h785-mj3c Tornado has an HTTP cookie parsing DoS vulnerability
HIGH
Official page ↗
- Aliases
- CVE-2024-52804
- Ecosystem
- PyPI
- Packages
- tornado
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Weaknesses
- CWE-400, CWE-770
- Reviewed
- 2024-11-22
Affected packages
• PyPI tornado: < 6.4.2 → fixed in 6.4.2
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.
Related
Alias · CVE (1)
- CVE-2024-52804 Tornado is a Python web framework and asynchronous networking library. vulnerability
References
- https://github.com/tornadoweb/tornado/security/advisories/GHSA-8w49-h785-mj3c web
- https://nvd.nist.gov/vuln/detail/CVE-2024-52804 advisory
- https://github.com/tornadoweb/tornado/commit/d5ba4a1695fbf7c6a3e54313262639b198291533 web
- https://github.com/tornadoweb/tornado package
- https://lists.debian.org/debian-lts-announce/2025/01/msg00000.html web