GHSA-8w49-h785-mj3c

Tornado has an HTTP cookie parsing DoS vulnerability

At a glance

Published
Updated
CVE
CVE-2024-52804
Aliases
PYSEC-2026-1975
CVSS_V3
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.

Affected packages

PackageVersions
PyPI · tornadointroduced 0, fixed 6.4.2

References

Sources

SourceLicence
OSV.devCC-BY 4.0 — GitHub Advisory Database