Red Hat VEX
RHVEX-CVE-2025-67726
tornado: Tornado Quadratic DoS via Crafted Multipart Parameters
Details
A denial of service flaw has been discovered in the Tornado networking library. Affected versions of Tornado us 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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Red Hat:enterprise_linux:9 | pcs | All versions, no fix yet |
| Red Hat:enterprise_linux:9 | pcs-snmp | All versions, no fix yet |
References
- https://access.redhat.com/security/cve/CVE-2025-67726
- https://bugzilla.redhat.com/show_bug.cgi?id=2421733
- https://www.cve.org/CVERecord?id=CVE-2025-67726
- https://nvd.nist.gov/vuln/detail/CVE-2025-67726
- https://github.com/tornadoweb/tornado/commit/771472cfdaeebc0d89a9cc46e249f8891a6b29cd
- https://github.com/tornadoweb/tornado/releases/tag/v6.5.3
- https://github.com/tornadoweb/tornado/security/advisories/GHSA-jhmp-mqwm-3gq8