Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-31958: CWE-400: Uncontrolled Resource Consumption in tornadoweb tornado

0
High
VulnerabilityCVE-2026-31958cvecve-2026-31958cwe-400
Published: Wed Mar 11 2026 (03/11/2026, 19:27:23 UTC)
Source: CVE Database V5
Vendor/Project: tornadoweb
Product: tornado

Description

Tornado is a Python web framework and asynchronous networking library. In versions of Tornado prior to 6.5.5, the only limit on the number of parts in multipart/form-data is the max_body_size setting (default 100MB). Since parsing occurs synchronously on the main thread, this creates the possibility of denial-of-service due to the cost of parsing very large multipart bodies with many parts. This vulnerability is fixed in 6.5.5.

AI-Powered Analysis

AILast updated: 03/11/2026, 19:59:03 UTC

Technical Analysis

CVE-2026-31958 is a vulnerability classified under CWE-400 (Uncontrolled Resource Consumption) affecting the Tornado Python web framework and asynchronous networking library. Tornado versions prior to 6.5.5 impose a limit on the total request body size via the max_body_size setting (default 100MB), but do not limit the number of parts in multipart/form-data requests. Multipart parsing occurs synchronously on the main event loop thread, meaning that processing a request with an extremely large number of parts can consume excessive CPU and memory resources, blocking the main thread and causing denial-of-service conditions. Because Tornado is often used to build web servers and APIs, this vulnerability can be exploited remotely by unauthenticated attackers sending specially crafted HTTP requests with many multipart sections. The vulnerability was publicly disclosed and assigned CVE-2026-31958 with a CVSS 4.0 score of 8.7, reflecting its high impact on availability and ease of exploitation (network vector, no privileges or user interaction required). The fix was introduced in Tornado 6.5.5, which adds limits to multipart parsing to prevent excessive resource consumption. No known exploits have been reported in the wild as of the publication date. This vulnerability highlights the risk of synchronous processing of untrusted input in event-driven frameworks, where blocking operations can degrade or halt service.

Potential Impact

The primary impact of CVE-2026-31958 is denial-of-service (DoS) against Tornado-based web applications. Attackers can craft multipart/form-data requests with a large number of parts to exhaust CPU and memory resources on the server, blocking the main event loop and causing service unavailability. This can disrupt critical web services, APIs, and backend systems relying on Tornado, leading to downtime and potential loss of business continuity. Because the vulnerability requires no authentication and can be triggered remotely, it poses a significant risk to internet-facing applications. Organizations using Tornado in high-traffic or critical environments may experience degraded performance or outages, impacting users and customers. Additionally, resource exhaustion could be leveraged as part of a larger attack chain or to distract from other malicious activities. The lack of known exploits in the wild suggests limited current exploitation but does not preclude future attacks, especially as the vulnerability is publicly known and easy to test. Overall, the vulnerability threatens availability and operational stability of affected systems worldwide.

Mitigation Recommendations

To mitigate CVE-2026-31958, organizations should upgrade all Tornado deployments to version 6.5.5 or later, where the multipart parsing limits have been implemented. If immediate upgrade is not feasible, consider implementing reverse proxy or web application firewall (WAF) rules to detect and block HTTP requests with unusually large numbers of multipart sections or excessively large bodies. Rate limiting and connection throttling can reduce the risk of resource exhaustion. Application developers should avoid synchronous blocking operations on the main event loop and consider asynchronous or streaming parsing methods for multipart data. Monitoring server resource usage and request patterns can help detect potential exploitation attempts. Additionally, review and tighten max_body_size settings to the minimum necessary for application functionality. Regularly audit dependencies and apply security patches promptly to reduce exposure to known vulnerabilities. Finally, conduct penetration testing and fuzzing on multipart request handling to identify similar weaknesses proactively.

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-03-10T15:40:10.481Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 69b1c6312f860ef9436c35eb

Added to database: 3/11/2026, 7:44:49 PM

Last enriched: 3/11/2026, 7:59:03 PM

Last updated: 3/11/2026, 11:32:20 PM

Views: 7

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 in Console -> Billing 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