ADVISORIES

Ubuntu CVE Tracker

UBUNTU-CVE-2025-67726

Details

Tornado is a Python web framework and asynchronous networking library. Versions 6.5.2 and below use an inefficient algorithm when parsing parameters for HTTP header values, potentially causing a DoS. The _parseparam function in httputil.py is used to parse specific HTTP header values, such as those in multipart/form-data and repeatedly calls string.count() within a nested loop while processing quoted semicolons. If an attacker sends a request with a large number of maliciously crafted parameters in a Content-Disposition header, the server's CPU usage increases quadratically (O(n²)) during parsing. Due to Tornado's single event loop architecture, a single malicious request can cause the entire server to become unresponsive for an extended period. This issue is fixed in version 6.5.3.

Affected packages

EcosystemPackageAffected versions
Ubuntu:Pro:16.04:LTSpython-tornado
All versions before 4.2.1-1ubuntu3.1+esm2 (fixed in 4.2.1-1ubuntu3.1+esm2)
Ubuntu:Pro:18.04:LTSpython-tornado
All versions before 4.5.3-1ubuntu0.2+esm2 (fixed in 4.5.3-1ubuntu0.2+esm2)
Ubuntu:Pro:20.04:LTSpython-tornado
All versions before 6.0.3+really5.1.1-3ubuntu0.1~esm3 (fixed in 6.0.3+really5.1.1-3ubuntu0.1~esm3)
Ubuntu:Pro:22.04:LTSpython-tornado
All versions before 6.1.0-3ubuntu0.1~esm4 (fixed in 6.1.0-3ubuntu0.1~esm4)
Ubuntu:24.04:LTSpython-tornado
All versions before 6.4.0-1ubuntu0.4 (fixed in 6.4.0-1ubuntu0.4)
Ubuntu:25.10python-tornado
All versions before 6.4.2-3ubuntu0.2 (fixed in 6.4.2-3ubuntu0.2)

References