Advisory

GHSA-8w49-h785-mj3c

Also known as: CVE-2024-52804, PYSEC-2026-1975

Summary

Tornado has an HTTP cookie parsing DoS vulnerability

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2024-11-22 20:26 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

tornado

PyPI · All systems

Affected

  • introduced 0, fixed 6.4.2 (ecosystem)

Fixed versions

6.4.2

Fix

  • Fixed version 6.4.2
    pip install --upgrade tornado==6.4.2

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences