openEuler Security Advisory
OESA-2025-2881
python-tornado security update
Details
Tornado is an open source version of the scalable, non-blocking web server and tools.
Security Fix(es):
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.(CVE-2025-67726)
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| openEuler:24.03-LTS-SP1 | python-tornado | All versions before 6.5-2.oe2403sp1 (fixed in 6.5-2.oe2403sp1) |
| openEuler:24.03-LTS-SP2 | python-tornado | All versions before 6.5-2.oe2403sp2 (fixed in 6.5-2.oe2403sp2) |
| openEuler:20.03-LTS-SP4 | python-tornado | All versions before 5.0.2-11.oe2003sp4 (fixed in 5.0.2-11.oe2003sp4) |
| openEuler:22.03-LTS-SP3 | python-tornado | All versions before 6.1-5.oe2203sp3 (fixed in 6.1-5.oe2203sp3) |
| openEuler:22.03-LTS-SP4 | python-tornado | All versions before 6.1-5.oe2203sp4 (fixed in 6.1-5.oe2203sp4) |
| openEuler:24.03-LTS | python-tornado | All versions before 6.5-2.oe2403 (fixed in 6.5-2.oe2403) |