CVE-2026-116577: Tornado: Quadratic CPU usage when parsing HTTP headers with line folding
Tornado’s HTTP header parser takes quadratic time (O(n²)) when a header value is continued across many “obsolete line folding” (obs-fold) lines. An unauthenticated attacker can send a request whose header block is mostly short continuation lines. Parsing it uses a large amount of CPU on the IOLoop thread and blocks every other connection that process is serving.
This issue is closely related to CVE-2025-67725 (GHSA-c98p-7wgm-6p64). The fix for that advisory covered repeated headers but not line-folded continuations.
References
- github.com/advisories/GHSA-pcg2-g6cj-q92c
- github.com/tornadoweb/tornado/commit/1b7a1dc9f340f52de929852e8125aa12f25297c9
- github.com/tornadoweb/tornado/pull/3765
- github.com/tornadoweb/tornado/releases/tag/v6.6.0
- github.com/tornadoweb/tornado/security/advisories/GHSA-pcg2-g6cj-q92c
- nvd.nist.gov/vuln/detail/CVE-2026-116577
Code Behaviors & Features
Detect and mitigate CVE-2026-116577 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →