GitHub Advisoryadvisory · PyPI

GHSA-8w49-h785-mj3c Tornado has an HTTP cookie parsing DoS vulnerability

HIGH Published 2024-11-22 Modified 2025-11-04 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

Weakness · CWE (2)

  • CWE-400 Uncontrolled Resource Consumption weakness
  • CWE-770 Allocation of Resources Without Limits or Throttling weakness

References