{"id":"CVE-2026-115927","aliases":["CVE-2026-115927","GHSA-r4j5-9xpp-3985"],"related":[],"kind":"vulnerability","state":"published","title":"Tornado: Event loop blocking and excess memory use from chunked bodies with many small chunks","summary":"Tornado is a Python web framework and asynchronous networking library. Prior to 6.6.0, Tornado decodes HTTP/1.1 chunked transfer encoding by processing body data that has already arrived without yielding to the event loop. A remote unauthenticated peer can send millions of one-byte chunks to monopolize the process event loop and stall every other connection served by that process, while lowering max_body_size only limits the duration of each request. For handlers that do not use @stream_request_body, retaining each chunk as a separate object can consume roughly twenty times the received body size, and SimpleAsyncHTTPClient has the same event-loop behavior when reading a response from a malicious server. This issue is fixed in version 6.6.0.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Tornado is a Python web framework and asynchronous networking library. Prior to 6.6.0, Tornado decodes HTTP/1.1 chunked transfer encoding by processing body data that has already arrived without yielding to the event loop. A remote unauthenticated peer can send millions of one-byte chunks to monopolize the process event loop and stall every other connection served by that process, while lowering max_body_size only limits the duration of each request. For handlers that do not use @stream_request_body, retaining each chunk as a separate object can consume roughly twenty times the received body size, and SimpleAsyncHTTPClient has the same event-loop behavior when reading a response from a malicious server. This issue is fixed in version 6.6.0.","source":"cvelist"},{"lang":"en","text":"### Summary\n\nWhen 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.\n\nBodies 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.\n\n### Impact\n\nAll 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. Lowering `max_body_size` reduces the maximum blocking time and memory use for each request but does not remove the issue.\n\n`SimpleAsyncHTTPClient` is affected in the same way when it reads a response from a malicious server.\n\n### Patches\n\nFixed in Tornado 6.6. Tornado now yields to the event loop periodically while reading any body, combines small chunks before passing them to `data_received`, and stores non-streaming bodies more compactly.\n\nApplications using `@stream_request_body` should note that the pieces passed to `data_received` no longer correspond to HTTP chunk boundaries.\n\n### Workarounds\n\n- Run Tornado behind a reverse proxy that buffers request bodies and forwards them with a `Content-Length` header instead of chunked encoding.\n- Lower `max_body_size` (for the whole server or for individual handlers) to limit the impact of each request.\n\n### Credit\n\nReported by [uttej-badwane](https://github.com/uttej-badwane).","format":"markdown","source":"ghsa"}],"published":"2026-10-26T19:37:40.584Z","modified":"2026-10-28T23:00:04.082Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"}],"cwes":["CWE-400","CWE-770"],"affected":[{"ranges":[{"version":"< 6.6.0","status":"affected"}],"vendor":"tornadoweb","product":"tornado","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"6.6"}],"ecosystem":"PyPI","package":"tornado","purl":"pkg:pypi/tornado","source":"ghsa"}],"references":[{"url":"https://github.com/tornadoweb/tornado/security/advisories/GHSA-r4j5-9xpp-3985","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/tornadoweb/tornado/pull/3773","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/tornadoweb/tornado/commit/ceab33581489751a66fba8566ad6d5960d4b01c8","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/tornadoweb/tornado/releases/tag/v6.6.0","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-115927","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/tornadoweb/tornado","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-10-27T13:45:56.157Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-115927","url":"https://www.cve.org/CVERecord?id=CVE-2026-115927","licence":"CVE Terms of Use","modified":"2026-10-27T14:18:44.227Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-r4j5-9xpp-3985","url":"https://github.com/advisories/GHSA-r4j5-9xpp-3985","licence":"CC-BY-4.0","modified":"2026-10-28T23:00:04.082Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-115927","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-115927","licence":"Public domain","modified":"2026-10-27T15:16:32.303Z"}],"updatedAt":"2026-11-25T22:59:47.185Z","epss":{"score":0.00469,"percentile":0.42237,"date":"2026-12-01T12:00:22.000Z"}}