{"id":"CVE-2025-67726","published":"2025-12-12T06:13:51Z","modified":"2025-12-18T18:48:49Z","title":"Tornado is Vulnerable to Quadratic DoS via Crafted Multipart Parameters","vendor":"tornadoweb","product":"tornado","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00574,"percentile":0.48331,"provenance":"source"},"cwes":[{"id":"CWE-834","name":"Excessive Iteration"},{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"references":[{"url":"https://github.com/tornadoweb/tornado/security/advisories/GHSA-jhmp-mqwm-3gq8","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/tornadoweb/tornado/commit/771472cfdaeebc0d89a9cc46e249f8891a6b29cd","tags":["x_refsource_MISC"]},{"url":"https://github.com/tornadoweb/tornado/releases/tag/v6.5.3","tags":["x_refsource_MISC"]}],"priority":{"score":14.9,"factors":[{"name":"EPSS percentile","points":9.67},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"tornadoweb","affectedVersions":[{"vendor":"tornadoweb","product":"tornado","versions":["< 6.5.3"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2025-12-18T18:47:53.473225Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"tornado","vulnerableRanges":["<6.5.3"],"patched":["6.5.3"],"from":["GHSA-jhmp-mqwm-3gq8","PYSEC-2025-267"],"provenance":"source"}],"summary":{"text":"Tornado, the Python web framework and asynchronous networking library, has a quadratic-complexity flaw in the _parseparam function in httputil.py, which parses parameters in HTTP header values such as multipart/form-data Content-Disposition headers. An attacker with network access can send a single unauthenticated request containing many crafted parameters, causing server CPU usage to grow quadratically and, because Tornado runs on a single event loop, making the whole server unresponsive for an extended period.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:34:37Z"},"euvd":{"id":"EUVD-2025-203029","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2025-47287","published":"2025-05-15","fixed":"6.5","kev":false,"link":{"from":"CVE-2025-47287","to":"CVE-2025-67726","relation":"successor","confidence":"high","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:tornado","fromFixed":"6.5","toFixed":"6.5.3","daysApart":211},{"kind":"same-code","provenance":"machine","files":["tornado/httputil.py"],"commits":["https://github.com/tornadoweb/tornado/commit/b39b892bf78fe8fea01dd45199aa88307e7162f3","https://github.com/tornadoweb/tornado/commit/771472cfdaeebc0d89a9cc46e249f8891a6b29cd"],"basis":"shared file"}]}},{"cve":"CVE-2025-67724","published":"2025-12-12","fixed":"6.5.3","kev":false},{"cve":"CVE-2025-67725","published":"2025-12-12","fixed":"6.5.3","kev":false},{"cve":"CVE-2025-67726","published":"2025-12-12","fixed":"6.5.3","kev":false},{"cve":"CVE-2026-31958","published":"2026-03-11","fixed":"6.5.5","kev":false,"link":{"from":"CVE-2025-67726","to":"CVE-2026-31958","relation":"successor","confidence":"high","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:tornado","fromFixed":"6.5.3","toFixed":"6.5.5","daysApart":89},{"kind":"same-code","provenance":"machine","files":["tornado/httputil.py"],"commits":["https://github.com/tornadoweb/tornado/commit/771472cfdaeebc0d89a9cc46e249f8891a6b29cd","https://github.com/tornadoweb/tornado/commit/119a195e290c43ad2d63a2cf012c29d43d6ed839"],"basis":"shared file"}]}},{"cve":"CVE-2026-35536","published":"2026-04-03","fixed":"6.5.5","kev":false,"link":{"from":"CVE-2025-67726","to":"CVE-2026-35536","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:tornado","fromFixed":"6.5.3","toFixed":"6.5.5","daysApart":112}]}},{"cve":"CVE-2026-49853","published":"2026-07-14","fixed":"6.5.6","kev":false}],"package":"PyPI:tornado"}}