Skip to main content
EPSS 0.4%top 66%

CVE-2026-49854: CWE-126: Buffer Over-read in tornadoweb tornado

0
Medium
Published: 08/13/2026 (08/13/2026, 17:34:42 UTC)
Source: CVE Database V5
Vendor/Project: tornadoweb
Product: tornado

Description

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

CVSS v3.1

Score 5.3medium

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Affected software

tornadoweb

tornado

Affected versions
<6.5.6
tornado
pkg:pypi/tornado
Affected versions
<6.5.6

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/21/2026, 22:44:46 UTC

Technical Analysis

CVE-2026-49854 is a buffer over-read vulnerability (CWE-126) in the Tornado web framework's optional native extension tornado.speedups. Specifically, the websocket_mask C function fails to validate that the mask argument is exactly four bytes long, which can cause it to read up to three bytes beyond the provided buffer. This occurs during Tornado XSRF token decoding when the native extension is enabled. The vulnerability affects Tornado versions prior to 6.5.6 and is resolved in version 6.5.6.

Potential Impact

The vulnerability allows an attacker to cause a buffer over-read, potentially exposing up to three bytes of memory beyond the intended buffer. According to the CVSS score of 5.3 (medium severity), the impact is limited to information disclosure (confidentiality loss) without integrity or availability impact. There are no known exploits in the wild.

Mitigation Recommendations

Upgrade Tornado to version 6.5.6 or later, where this vulnerability is fixed. No other mitigation or temporary workaround is indicated. Patch status is confirmed by the vendor stating the fix is in version 6.5.6.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-06-01T22:03:19.640Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 6a56a08668715ace432de5e4

Added to database: 07/14/2026, 20:48:06 UTC

Last enriched: 07/21/2026, 22:44:46 UTC

Last updated: 10/11/2026, 18:48:19 UTC

Views: 168

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses