CVE-2026-49855
JSON

7.5high

tornado AsyncHTTPClient accumulates decompressed chunks without size limit (gzip bomb)

Severity
7.5high CVSS:3.1 by GitHub_M
Exploit likelihood
0.57% (higher than 48% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-mgf9-4vpg-hj56PYSEC-2026-3389

Description

Tornado is a Python web framework and asynchronous networking library. Prior to 6.5.6, Tornado gzip decompression routines processed limited-size chunks but did not enforce an overall limit on accumulated decompressed chunks, allowing a malicious server accessed by SimpleAsyncHTTPClient or an HTTPServer configured with decompress_request=True to consume effectively unlimited memory. This issue is fixed in version 6.5.6.

Affected

Product or packageVersionsReported by
tornadoweb tornado< 6.5.6CVE List
tornado (PyPI)before 6.5.6GitHub Advisory Database, PyPA Advisory Database

All scores

GitHub_M7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
PyPA Advisory Database7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-409

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

Tornado is a Python web framework and asynchronous networking library. Prior to 6.5.6, Tornado gzip decompression routines processed limited-size chunks but did not enforce an overall limit on accumulated decompressed chunks, allowing a malicious server accessed by SimpleAsyncHTTPClient or an HTTPServer configured with decompress_request=True to consume effectively unlimited memory. This issue is fixed in version 6.5.6.

GitHub Advisory Database

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.

NVD (es)

Tornado es un framework web de Python y una biblioteca de red asíncrona. Antes de la versión 6.5.6, las rutinas de descompresión gzip de Tornado procesaban fragmentos de tamaño limitado pero no aplicaban un límite general a los fragmentos descomprimidos acumulados, lo que permitía a un servidor malicioso accedido por SimpleAsyncHTTPClient o un HTTPServer configurado con decompress_request=True consumir memoria de forma efectivamente ilimitada. Este problema está solucionado en la versión 6.5.6.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-49855 changed 2026-07-16CVE Terms of Use
GitHub Advisory DatabaseGHSA-mgf9-4vpg-hj56 changed 2026-09-10CC-BY-4.0
NVDCVE-2026-49855 changed 2026-10-24Public domain
PyPA Advisory DatabasePYSEC-2026-3389 changed 2026-07-13CC-BY-4.0