VAITP Dataset

← Back to the dataset

CVE-2026-116577

Quadratic CPU DoS via malicious HTTP header line folding in Tornado < 6.6.

  • CVSS 5.3
  • CWE-407
  • Resource Management
  • Remote

Tornado is a Python web framework and asynchronous networking library. Prior to 6.6, Tornado's HTTP header parser accepts obsolete line folding and repeatedly concatenates short continuation lines, causing quadratic CPU consumption on the IOLoop thread. An unauthenticated client can submit a header block containing many obsolete line-folding continuations before application code runs, blocking other connections served by the process. The cost grows with max_header_size, and only availability is affected. This issue is fixed in version 6.6.

CVSS base score
5.3
Published
2026-10-26
OWASP
A06 Vulnerable and Outdated Components
Orthogonal defect classification
Timing/Serialization
Code defect classification
Timing Issues
Category
Resource Management
Subcategory
Resource Exhaustion
Accessibility scope
Remote
Impact
Denial of Service (DoS)
Affected component
Tornado
Fixed by upgrading
Yes

Solution

Upgrade Tornado to version 6.6 or newer.

Vulnerable code sample

import tornado.web
import tornado.ioloop
from tornado.httpserver import HTTPServer

class MainHandler(tornado.web.RequestHandler):
    def get(self):
        self.write("ok")

def make_app():
    return tornado.web.Application([("/", MainHandler)])

def start():
    # VULNERABLE: accepts folded headers causing quadratic parsing
    server = HTTPServer(make_app(), max_header_size=65536)
    server.listen(8888)
    tornado.ioloop.IOLoop.current().start()

Patched code sample

import tornado.web
import tornado.ioloop
from tornado.httpserver import HTTPServer

class MainHandler(tornado.web.RequestHandler):
    def get(self):
        self.write("ok")

def make_app():
    return tornado.web.Application([("/", MainHandler)])

def start():
    # FIX: disables line folding in header parser
    server = HTTPServer(make_app(), max_header_size=65536, allow_line_folding=False)
    server.listen(8888)
    tornado.ioloop.IOLoop.current().start()

Published fix

Public sources link this CVE to the changes below. The code samples above were generated to illustrate the defect; these links lead to the code the project actually changed.

Cite this entry

@misc{vaitp:cve2026116577,
  title        = {{Quadratic CPU DoS via malicious HTTP header line folding in Tornado < 6.6.}},
  author       = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
  year         = {2026},
  note         = {VAITP Python Vulnerability Dataset, entry CVE-2026-116577},
  howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2026-116577/}}
}

Download this entry as JSON Download the whole dataset

Introducing the "VAITP dataset": a specialized repository of Python vulnerabilities and patches, meticulously compiled for the use of the security research community. As Python's prominence grows, understanding and addressing potential security vulnerabilities become crucial. Crafted by and for the cybersecurity community, this dataset offers a valuable resource for researchers, analysts, and developers to analyze and mitigate the security risks associated with Python. Through the comprehensive exploration of vulnerabilities and corresponding patches, the VAITP dataset fosters a safer and more resilient Python ecosystem, encouraging collaborative advancements in programming security.

The supreme art of war is to subdue the enemy without fighting.

Sun Tzu – “The Art of War”

:: Shaping the future through research and ingenuity ::

Before you use the VAITP AI models

Please read and accept the following disclaimer:

By choosing "I understand and accept", you acknowledge that you understand and agree to these terms.