Tornado is a Python web framework and asynchronous networking library. Versions 6.5.2 and below use an inefficient algorithm when parsing parameters f...
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| Ubuntu:Pro:16.04:LTSpython-tornado |
< 4.2.1-1ubuntu3.1+esm2→ 4.2.1-1ubuntu3.1+esm2 |
4.2.1-1ubuntu3.1+esm2 |
| Ubuntu:Pro:18.04:LTSpython-tornado |
< 4.5.3-1ubuntu0.2+esm2→ 4.5.3-1ubuntu0.2+esm2 |
4.5.3-1ubuntu0.2+esm2 |
| Ubuntu:Pro:20.04:LTSpython-tornado |
< 6.0.3+really5.1.1-3ubuntu0.1~esm3→ 6.0.3+really5.1.1-3ubuntu0.1~esm3 |
6.0.3+really5.1.1-3ubuntu0.1~esm3 |
| Ubuntu:Pro:22.04:LTSpython-tornado |
< 6.1.0-3ubuntu0.1~esm4→ 6.1.0-3ubuntu0.1~esm4 |
6.1.0-3ubuntu0.1~esm4 |
| Ubuntu:24.04:LTSpython-tornado |
< 6.4.0-1ubuntu0.4→ 6.4.0-1ubuntu0.4 |
6.4.0-1ubuntu0.4 |
| Ubuntu:25.10python-tornado |
< 6.4.2-3ubuntu0.2→ 6.4.2-3ubuntu0.2 |
6.4.2-3ubuntu0.2 |
Original description The description as published by the source.
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.
Source: OSV.dev (Open Source Vulnerabilities) OSV
References
- advisory ubuntu.com
- report ubuntu.com
- report cve.org
- report github.com
- report github.com
- report github.com