Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. tornado
  4. ›
  5. CVE-2024-52804

CVE-2024-52804: Tornado has an HTTP cookie parsing DoS vulnerability

November 22, 2024

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.

References

  • github.com/advisories/GHSA-8w49-h785-mj3c
  • github.com/tornadoweb/tornado
  • github.com/tornadoweb/tornado/security/advisories/GHSA-8w49-h785-mj3c
  • nvd.nist.gov/vuln/detail/CVE-2024-52804

Code Behaviors & Features

Detect and mitigate CVE-2024-52804 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 6.4.2

Fixed versions

  • 6.4.2

Solution

Upgrade to version 6.4.2 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

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

Source file

pypi/tornado/CVE-2024-52804.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:15 +0000.