Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

github логотип

GHSA-cx3h-4qpv-8hc9

Опубликовано: 12 июн. 2026
Источник: github
Github: Прошло ревью
CVSS3: 3.7

Описание

Tornado has out-of-bounds memory access via C extension

Summary

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.

Mitigations

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).

Пакеты

Наименование

tornado

pip
Затронутые версииВерсия исправления

< 6.5.6

6.5.6

EPSS

Процентиль: 36%
0.0045
Низкий

3.7 Low

CVSS3

Дефекты

CWE-126

Связанные уязвимости

CVSS3: 5.3
ubuntu
23 дня назад

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.

CVSS3: 5.3
redhat
23 дня назад

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.

CVSS3: 5.3
nvd
23 дня назад

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.

CVSS3: 5.3
debian
23 дня назад

Tornado is a Python web framework and asynchronous networking library. ...

suse-cvrf
около 1 месяца назад

Security update for python-tornado6

EPSS

Процентиль: 36%
0.0045
Низкий

3.7 Low

CVSS3

Дефекты

CWE-126