Improper resource allocation In tornado
Description
Tornado: Quadratic DoS via Repeated Header Coalescing
Summary
The HTTPHeaders.add method in Tornado accumulates values using string concatenation when the same header name is repeated. Due to Python string immutability, each concatenation copies the entire string, resulting in O(n²) time complexity.
Given Tornado's single event loop architecture, a single maliciously crafted HTTP request can block the server's event loop for an extended period, causing a Denial of Service (DoS).
Severity: High if max_header_size has been increased from its default, low if it has its default value of 64KB.
Mitigation
Update Impact
Minimal update. May introduce new vulnerabilities or breaking changes.
Ecosystem | Component | Affected version | Patched versions |
|---|---|---|---|
debian 12 | 6.2.0-3+deb12u4 | ||
debian 13 | 6.4.2-3+deb13u2 | ||
debian 14 | 6.5.4-0.1 | ||
rpm rhel10 | - | - | |
rpm rhel9 | - | - | |
rpm rhel10 | - | - | |
rpm rhel9 | - | - | |
rpm rhel8 | 0:0.10.18-2.el8_10.8 | ||
rpm rhel8.4 | 0:0.10.8-1.el8_4.10 | ||
rpm rhel9 | - | - |
1-10 of 11
10
Aliases
References