CVE-2025-67726
JSON

7.5high

Tornado is Vulnerable to Quadratic DoS via Crafted Multipart Parameters

Severity
7.5high CVSS:3.1 by GitHub_M
Exploit likelihood
0.57% (higher than 48% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-jhmp-mqwm-3gq8PYSEC-2025-267

Description

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.

Affected

Product or packageVersionsReported by
tornadoweb tornado< 6.5.3, before 6.5.3CVE List, NVD
tornado (PyPI)before 6.5.3GitHub Advisory Database, PyPA Advisory Database

All scores

GitHub_M7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
PyPA Advisory Database7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-400CWE-834

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database

Summary

The _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=";").

As 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).

Severity: High

NVD (es)

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.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-67726 changed 2025-12-18CVE Terms of Use
GitHub Advisory DatabaseGHSA-jhmp-mqwm-3gq8 changed 2026-07-20CC-BY-4.0
NVDCVE-2025-67726 changed 2026-10-07Public domain
PyPA Advisory DatabasePYSEC-2025-267 changed 2026-07-13CC-BY-4.0