Skip to main content

Tornado EUVDEUVD-2026-44504

| CVE-2026-49854 MEDIUM
Buffer Over-read (CWE-126)
2026-06-12 https://github.com/tornadoweb/tornado GHSA-cx3h-4qpv-8hc9 PYSEC-2026-3388
5.3
CVSS 3.1 · Vendor: https://github.com/tornadoweb/tornado
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify Tornado instance with speedups extension and xsrf_cookies=True
  2. Delivery
    Send WebSocket frame with mask shorter than 4 bytes
  3. Exploit
    Trigger websocket_mask C function with undersized buffer
  4. Execution
    C function reads beyond allocated mask buffer
  5. Impact
    Receive up to 3 bytes of uninitialized process memory

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Buffer over-read prevention
Exploitation Conditions

Two non-default conditions must be simultaneously satisfied: (1) the tornado.speedups C extension must be installed (it is an optional build dependency, not included in pure-Python Tornado installs) and the environment variable TORNADO_EXTENSION must not be set to 0; and (2) the Tornado application must be configured with xsrf_cookies=True to make the XSRF token decoder code path active. Exploitation does not require authentication (CVSS PR:N) or user interaction (CVSS UI:N), but the dual configuration requirement is the primary limiting factor that elevates attack complexity to AC:H. Applications running pure-Python Tornado (no C extension), or with XSRF cookie support disabled, are not affected by this specific code path.

Impact

The official CVSS base score of 3.7 (Low) with vector CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N accurately reflects the constrained impact: only up to 3 bytes of uninitialized memory can be disclosed per triggering event, and the attack requires two non-default conditions to be simultaneously true (native extension active and xsrf_cookies=True). EPSS at 0.04% (11th percentile) and the absence of a KEV listing corroborate that this has not been broadly exploited. There is no integrity or availability impact. Real-world risk is therefore low for most deployments - the vulnerability is not trivially weaponizable into arbitrary memory disclosure. However, for high-security applications where any memory leakage is unacceptable (e.g., applications storing cryptographic key material or sensitive tokens in process memory), even a 3-byte oracle warrants prompt patching. No conflicting signals were found between CVSS, EPSS, and KEV data - all three are consistent with a niche, low-severity information disclosure.

Exploit ScenarioDerived

An attacker sends a WebSocket frame containing a mask shorter than four bytes to a Tornado application that has both the tornado.speedups C extension installed and xsrf_cookies=True enabled. The C websocket_mask function reads four bytes from the truncated mask buffer, accessing between one and three bytes of adjacent uninitialized memory and returning them as part of the WebSocket processing output. No public proof-of-concept exploit has been identified at time of analysis.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 12, 2026

Out-of-bounds memory read in Tornado's optional C extension tornado.speedups exposes up to 3 bytes of uninitialized memory via a missing length validation in the websocket_mask function. Applications running Tornado versions prior to 6.5.6 with the native extension active and xsrf_cookies=True are reachable from the network without authentication (CVSS AV:N/PR:N), though high attack complexity (AC:H) is indicated by the dual configuration prerequisite. No public exploit code or CISA KEV listing exists at time of analysis, and EPSS stands at 0.04% (11th percentile), consistent with the low exploitation probability for a constrained information-disclosure primitive. Vendor-released patch is Tornado 6.5.6.

RemediationAI

The primary remediation is upgrading to Tornado 6.5.6, which introduces proper length validation on the mask argument in the C extension. The release is available via PyPI (pip install tornado==6.5.6) and at https://github.com/tornadoweb/tornado/releases/tag/v6.5.6. For deployments that cannot upgrade immediately, setting the environment variable TORNADO_EXTENSION=0 before process startup disables the tornado.speedups C extension entirely, routing all WebSocket masking through the pure-Python fallback. The trade-off is a measurable reduction in WebSocket throughput performance; the severity of the performance impact depends on WebSocket traffic volume in the deployment. No other compensating controls (such as WAF rules or network restrictions) would reliably prevent exploitation, since the vulnerable code path is reachable via ordinary WebSocket frame processing.

Affected VersionsENISA

Tornado < 6.5.6

Affected Packages

pypi tornado fix: 6.5.6

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Tornado (pip package tornado) is a Python asynchronous web framework. Its optional native C extension tornado.speedups accelerates WebSocket operations, including the websocket_mask function that applies the RFC 6455 four-byte XOR mask to WebSocket frame payloads. The root cause is CWE-126 (Buffer Over-read): the C implementation reads exactly four bytes from the mask argument unconditionally, without first verifying that the caller-supplied mask byte string is at least four bytes long. When Python passes a shorter buffer - a condition reachable via Tornado's XSRF token decoder when xsrf_cookies=True is set - the C function reads one to three bytes beyond the end of the allocated Python bytes object, accessing uninitialized heap or stack memory. The affected CPE is pkg:pip/tornado for all versions below 6.5.6.

Know when Python gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/tornadoweb/tornado) PRIMARY 5.3 MEDIUM
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
vuln.today AI 3.7 LOW

Network-reachable via WebSocket but AC:H due to dual prerequisite (C extension active + xsrf_cookies=True); only low confidentiality from 3-byte uninitialized memory leak; no integrity or availability impact.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
4.0 AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
SUSE 3.7 LOW
AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
Red Hat 5.3 MEDIUM

Primary rating from Vendor (https://github.com/tornadoweb/tornado).

CVSS VectorVendor: https://github.com/tornadoweb/tornado

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
None

Lifecycle Timeline

2
Severity Changed
Jul 14, 2026 - 21:22 NVD
LOW MEDIUM
CVSS changed
Jul 14, 2026 - 21:22 NVD
3.7 (LOW) 5.3 (MEDIUM)

DescriptionCVE.org

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

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 6 pypi packages depend on tornado (2 direct, 4 indirect)

Ecosystem-wide dependent count for version 6.5.6.

Threat Intelligence Overview

EPSS Score
0.0%
Top 89% exploitable
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact· derived
Medium

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

Vendor StatusVendor

SUSE

Severity: Low
Product Status
Container suse/multi-linux-manager/5.1/x86_64/proxy-salt-broker:5.1.4.9.22.2 Container suse/multi-linux-manager/5.1/x86_64/server-saline:5.1.4.9.22.1 Container suse/multi-linux-manager/5.1/x86_64/server:5.1.4.8.22.1 Image SLES15-SP7-BYOS-Azure Image SLES15-SP7-BYOS-GCE Image SLES15-SP7-HPC-BYOS-Azure Image SLES15-SP7-HPC-BYOS-EC2 Image SLES15-SP7-HPC-BYOS-GCE Image SLES15-SP7-Hardened-BYOS-Azure Image SLES15-SP7-Hardened-BYOS-EC2 Image SLES15-SP7-Hardened-BYOS-GCE Image SLES15-SP7-SAP-BYOS-Azure Image SLES15-SP7-SAP-BYOS-EC2 Image SLES15-SP7-SAP-BYOS-GCE Image SLES15-SP7-SAP-Hardened-BYOS-Azure Image SLES15-SP7-SAP-Hardened-BYOS-EC2 Image SLES15-SP7-SAP-Hardened-BYOS-GCE Affected
Container suse/sl-micro/6.0/base-os-container:latest Image SL-Micro Image SLE-Micro Image SLE-Micro-Azure Image SLE-Micro-BYOS Image SLE-Micro-BYOS-Azure Image SLE-Micro-BYOS-EC2 Image SLE-Micro-BYOS-GCE Image SLE-Micro-EC2 Image SLE-Micro-GCE Affected
Image SLES-SAP-BYOS-Azure Image SLES-SAP-BYOS-EC2 Image SLES-SAP-BYOS-GCE Affected
SUSE Linux Enterprise Desktop 15 SP7 SUSE Linux Enterprise High Performance Computing 15 SP7 SUSE Linux Enterprise Server 15 SP7 SUSE Linux Enterprise Server for SAP Applications 15 SP7 Fixed
SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy