Red Hat VEX
RHVEX-CVE-2026-49854
tornado: Tornado: Information disclosure via out-of-bounds read in websocket_mask
Details
A flaw was found in Tornado, a Python web framework. The optional native extension tornado.speedups did not properly validate the mask argument in its websocket_mask function. This allowed the C function to read beyond the intended buffer, potentially exposing up to three bytes of uninitialized memory. This vulnerability can be triggered when the native extension is active and Tornado's Cross-Site Request Forgery (XSRF) token decoder is in use, leading to information disclosure.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Red Hat:enterprise_linux:10 | python-tornado | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:10 | python3-tornado | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:7 | python-tornado | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | python-tornado-doc | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:8 | pcs | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:8 | pcs-snmp | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:9 | python-tornado | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:9 | python3-tornado | All versions, no fix (fix deferred) |
References
- https://access.redhat.com/security/cve/CVE-2026-49854
- https://bugzilla.redhat.com/show_bug.cgi?id=2500661
- https://www.cve.org/CVERecord?id=CVE-2026-49854
- https://nvd.nist.gov/vuln/detail/CVE-2026-49854
- https://github.com/tornadoweb/tornado/commit/96dc88c2a05705287856b2cd6b4b4034f9a6aaac
- https://github.com/tornadoweb/tornado/pull/3626
- https://github.com/tornadoweb/tornado/releases/tag/v6.5.6
- https://github.com/tornadoweb/tornado/security/advisories/GHSA-cx3h-4qpv-8hc9