tornado
Affected
- introduced
0, fixed6.6(ecosystem)
Fixed versions
6.6
Fix
- Fixed version
6.6pip install --upgrade tornado==6.6
Advisory
Also known as: CVE-2026-116577
Tornado: Quadratic CPU usage when parsing HTTP headers with line folding
Summary
Tornado's HTTP header parser takes quadratic time (O(n²)) when a header value is continued across many "obsolete line folding" (obs-fold) lines. An unauthenticated attacker can send a request whose header block is mostly short continuation lines. Parsing it uses a large amount of CPU on the IOLoop thread and blocks every other connection that process is serving.
This issue is closely related to CVE-2025-67725 (GHSA-c98p-7wgm-6p64). The fix for that advisory covered repeated headers but not line-folded continuations.
Impact
All Tornado HTTP servers are affected. Header parsing runs before any application code, so no authentication or particular handler is required.
How bad it gets depends on max_header_size:
Only availability is affected. Confidentiality and integrity are not.
Patches
Fixed in Tornado 6.6 by removing support for obsolete line folding completely; header lines that begin with whitespace are now rejected.
Workarounds
max_header_size at its default value or lower it. This limits the impact but doesn't remove it.Credit
Reported by @manus-pi.
Medium Basis: The source's own band: MODERATE
0, fixed 6.6 (ecosystem)6.6
6.6pip install --upgrade tornado==6.6Fix 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
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0