PyPI
CVE-2026-116577
Tornado: Quadratic CPU usage when parsing HTTP headers with line folding
- Severity
- Medium 5.3
- Published
- 28 Oct 2026
- Last changed
- 28 Oct 2026
- Added to UpHeron
- 23 Nov 2026
- Fixed in
- 6.6
- Exploit chance
- 0.5% in the next 30 daysHigher than 41% of CVEs. EPSS by FIRST, 24 Nov 2026
- Attack
- Over the network · No login needed · No user action needed
- Attacker can
- Slow it down
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L- Also known as
- GHSA-pcg2-g6cj-q92c
- Sources
- OSV.dev and GitHub
Description
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.
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:
- Default (64 KB): each malicious request blocks the event loop for tens of milliseconds. Repeated requests can degrade service.
- Raised max_header_size: the cost grows with the square of the header size. A single 1 MB request can block the process for several seconds.
Workarounds
- Keep max_header_size at its default value or lower it. This limits the impact but doesn't remove it.
- Run Tornado behind a reverse proxy that rejects or normalizes obsolete line folding before forwarding requests.
Affected software
| Software | Affected versions |
|---|---|
tornadoPyPI · osv:PyPI:tornado |
|
About tornado
- Weekly downloads (PyPI)
- 28,633,007PyPI Stats, 23 Nov 2026
Vulnerabilities in tornado
- In our list
- 6
- Published in the last 12 months
- 6
- Critical, last 12 months
- 0
- High, last 12 months
- 1
- Known exploited
- 0
- CVE-2026-126347Tornado: Open redirect via triple-slash redirect pathsLow 3.1 13 Nov 2026
- CVE-2026-123535Tornado before 6.6 Cookie Attribute Injection via set_cookie max_ageLow 2.3 8 Nov 2026
- CVE-2026-123534Tornado before 6.6 Path Traversal via static_url() Version HashingHigh 8.3 8 Nov 2026
- CVE-2026-115927Tornado: Event loop blocking and excess memory use from chunked bodies with many small chunksMedium 5.3 28 Oct 2026
- CVE-2026-116578Tornado: Open redirect in RedirectHandler via protocol-relative URLsLow 28 Oct 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-116577
- GitHub Advisory Database https://github.com/advisories/GHSA-pcg2-g6cj-q92c