PT-2026-60003 · Pypi · Tornado
Published
2026-07-13
·
Updated
2026-07-13
CVSS v3.1
7.5
High
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Tornado's gzip decompression routines work in limited-size chunks, but have no overall limit for the total size of decompressed chunks that they will accumulate (There has always been a limit for the total compressed size). This allows a malicious server to consume effectively unlimited amounts of memory if it is accessed via SimpleAsyncHTTPClient in its default configuration.
HTTPServer is not affected in its default configuration, but it is if decompress request=True is set.This bug is fixed in Tornado 6.5.6.
max body size is now checked both for the compressed and cumulative decompressed size of the response.Prior to upgrading, this issue can be mitigated by setting
decompress response=False or using CurlAsyncHTTPClient.Fix
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Tornado