{"id":"CVE-2025-67726","aliases":["CVE-2025-67726","GHSA-jhmp-mqwm-3gq8","PYSEC-2025-267"],"related":[],"kind":"vulnerability","state":"published","title":"Tornado is Vulnerable to Quadratic DoS via Crafted Multipart Parameters","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"## Summary\n\nThe `_parseparam` function in Tornado's `httputil.py` is used to parse specific HTTP header values, such as those in `multipart/form-data`. This function uses an inefficient algorithm that repeatedly calls `string.count()` within a nested loop while processing quoted semicolons (e.g., `param=\";\"`).\n\nAs a result, 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, leading to a Denial of Service (DoS).\n\n**Severity: High**","format":"markdown","source":"ghsa"},{"lang":"es","text":"Tornado es un framework web de Python y una biblioteca de red asíncrona. Las versiones 6.5.2 e inferiores utilizan un algoritmo ineficiente al analizar parámetros para valores de encabezado HTTP, lo que podría causar un DoS. La función _parseparam en httputil.py se utiliza para analizar valores específicos de encabezado HTTP, como los de multipart/form-data, y llama repetidamente a string.count() dentro de un bucle anidado mientras procesa puntos y coma 'entre comillas'. Si un atacante envía una solicitud con un gran número de parámetros creados maliciosamente en un encabezado Content-Disposition, el uso de CPU del servidor aumenta cuadráticamente (O(n²)) durante el análisis. Debido a la arquitectura de bucle de eventos único de Tornado, una única solicitud maliciosa puede hacer que todo el servidor deje de responder durante un período prolongado. Este problema se soluciona en la versión 6.5.3.","source":"nvd"}],"published":"2025-12-12T06:13:51.336Z","modified":"2026-10-07T20:10:01.970Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-400","CWE-834"],"affected":[{"ranges":[{"version":"< 6.5.3","status":"affected"}],"vendor":"tornadoweb","product":"tornado","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"6.5.3"}],"ecosystem":"PyPI","package":"tornado","purl":"pkg:pypi/tornado","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"6.5.3"}],"vendor":"tornadoweb","product":"tornado","cpe":"cpe:2.3:a:tornadoweb:tornado:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"6.5.3"}],"ecosystem":"PyPI","package":"tornado","purl":"pkg:pypi/tornado","source":"pysec"}],"references":[{"url":"https://github.com/tornadoweb/tornado/security/advisories/GHSA-jhmp-mqwm-3gq8","tags":["advisory","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/tornadoweb/tornado/commit/771472cfdaeebc0d89a9cc46e249f8891a6b29cd","tags":["fix","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/tornadoweb/tornado/releases/tag/v6.5.3","tags":["advisory","release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-67726","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/tornado/PYSEC-2025-267.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/tornadoweb/tornado","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2025-12-18T18:47:53.473Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-67726","url":"https://www.cve.org/CVERecord?id=CVE-2025-67726","licence":"CVE Terms of Use","modified":"2025-12-18T18:48:49.007Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-jhmp-mqwm-3gq8","url":"https://github.com/advisories/GHSA-jhmp-mqwm-3gq8","licence":"CC-BY-4.0","modified":"2026-07-20T19:15:27.583Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-67726","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-67726","licence":"Public domain","modified":"2026-10-07T20:10:01.970Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2025-267","url":"https://osv.dev/vulnerability/PYSEC-2025-267","licence":"CC-BY-4.0","modified":"2026-07-13T07:15:45.375Z"}],"updatedAt":"2026-11-25T22:59:09.304Z","epss":{"score":0.00574,"percentile":0.48787,"date":"2026-12-01T12:00:22.000Z"}}