PyPI
CVE-2026-115927
Tornado: Event loop blocking and excess memory use from chunked bodies with many small chunks
- 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-r4j5-9xpp-3985
- Sources
- OSV.dev and GitHub
Description
When Tornado reads an HTTP/1.1 body that uses chunked transfer encoding, it processes all chunks that have already arrived without yielding to the event loop. A client can send a body made of millions of 1-byte chunks, which blocks the event loop (and therefore every other connection served by that process) for the entire time it takes to parse the body. A body near the default max_body_size of 100 MB can block the process for close to a minute, and the attacker can repeat or parallelize these requests.
Bodies made of tiny chunks also consumed far more memory than their size: a handler that does not use @stream_request_body stored each chunk as a separate object, using roughly 20 times as much memory as the bytes received.
All Tornado HTTP servers are affected when they receive a request body for a handler that reads it, which includes any handler that does not reject the request before the body is read. No authentication is required.
Workarounds
- Run Tornado behind a reverse proxy that buffers request bodies and forwards them with a Content-Length header instead of chunked encoding.
- Lower max_body_size (for the whole server or for individual handlers) to limit the impact of each request.
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-116578Tornado: Open redirect in RedirectHandler via protocol-relative URLsLow 28 Oct 2026
- CVE-2026-116577Tornado: Quadratic CPU usage when parsing HTTP headers with line foldingMedium 5.3 28 Oct 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-115927
- GitHub Advisory Database https://github.com/advisories/GHSA-r4j5-9xpp-3985