Vulnerability · Published Jul 14, 2026 · Assigned by GitHub_M
CVE-2026-49854Tornado: Out-of-bounds memory access in C extension
Medium 5.3
In plain English
A medium-severity security flaw in tornado from tornadoweb. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 36% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
Tornado is a Python web framework and asynchronous networking library. Prior to 6.5.6, the optional native extension tornado.speedups implemented websocket_mask without validating that the mask argument is exactly four bytes, allowing the C function to read up to three bytes beyond the provided buffer when reached through Tornado XSRF token decoding with the native extension active. This issue is fixed in version 6.5.6.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | python-tornado | no fix listed | DEBIAN-CVE-2026-49854 |
| Debian:13 | python-tornado | no fix listed | DEBIAN-CVE-2026-49854 |
| Debian:14 | python-tornado | no fix listed | DEBIAN-CVE-2026-49854 |
| PyPI | tornado | 6.5.6 | GHSA-cx3h-4qpv-8hc9 |
| PyPI | tornado | 6.5.6 | PYSEC-2026-3388 |
| Ubuntu:24.04:LTS | python-tornado | no fix listed | UBUNTU-CVE-2026-49854 |
| Ubuntu:26.04:LTS | python-tornado | no fix listed | UBUNTU-CVE-2026-49854 |
| Ubuntu:26.10 | python-tornado | no fix listed | UBUNTU-CVE-2026-49854 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| tornadoweb | tornado | < 6.5.6 |
Weakness: CWE-126 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
References
- https://github.com/tornadoweb/tornado/security/advisories/GHSA-cx3h-4qpv-8hc9 x_refsource_CONFIRM
- https://github.com/tornadoweb/tornado/pull/3626 x_refsource_MISC
- https://github.com/tornadoweb/tornado/commit/96dc88c2a05705287856b2cd6b4b4034f9a6aaac x_refsource_MISC
- https://github.com/tornadoweb/tornado/releases/tag/v6.5.6 x_refsource_MISC