OSV 1.4.0 · github-reviewed · 修改于 2026-06-13 02:30
发布时间
2026-06-13 02:30
GitHub 审查时间
2026-06-13 02:30
NVD 发布时间
—
源文件
advisories/github-reviewed/2026/06/GHSA-cx3h-4qpv-8hc9/GHSA-cx3h-4qpv-8hc9.json
Tornado's optional native extension tornado.speedups implements websocket_mask without validating that the mask argument is exactly four bytes long. The C function reads four bytes from mask unconditionally, even when Python passes a shorter byte string. This can read beyond the provided buffer, exposing up to 3 bytes of uninitialized memory.
The behavior is reachable from Tornado's XSRF token decoder when xsrf_cookies=True and the native extension is active.
This bug is fixed in Tornado 6.5.6. Prior to upgrading to this version, setting the environment variable TORNADO_EXTENSION=0 will disable the vulnerable code (at the expense of reducing websocket performance).