CVE-2025-67725
JSON

7.5high

Tornado is Vulnerable to Quadratic DoS via Repeated Header Coalescing

Severity
7.5high CVSS:3.1 by GitHub_M
Exploit likelihood
0.65% (higher than 52% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-c98p-7wgm-6p64PYSEC-2025-266

Description

Tornado is a Python web framework and asynchronous networking library. In versions 6.5.2 and below, a single maliciously crafted HTTP request can block the server's event loop for an extended period, caused by the HTTPHeaders.add method. The function accumulates values using string concatenation when the same header name is repeated, causing a Denial of Service (DoS). Due to Python string immutability, each concatenation copies the entire string, resulting in O(n²) time complexity. The severity can vary from high if max_header_size has been increased from its default, to low if it has its default value of 64KB. 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-400

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. In versions 6.5.2 and below, a single maliciously crafted HTTP request can block the server's event loop for an extended period, caused by the HTTPHeaders.add method. The function accumulates values using string concatenation when the same header name is repeated, causing a Denial of Service (DoS). Due to Python string immutability, each concatenation copies the entire string, resulting in O(n²) time complexity. The severity can vary from high if max_header_size has been increased from its default, to low if it has its default value of 64KB. This issue is fixed in version 6.5.3.

GitHub Advisory Database

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.

NVD (es)

Tornado es un framework web de Python y una biblioteca de red asíncrona. En las versiones 6.5.2 e inferiores, una única solicitud HTTP maliciosa puede bloquear el bucle de eventos del servidor durante un período prolongado, causado por el método HTTPHeaders.add. La función acumula valores usando la concatenación de cadenas cuando el mismo nombre de encabezado se repite, causando una Denegación de Servicio (DoS). Debido a la inmutabilidad de las cadenas de Python, cada concatenación copia la cadena completa, lo que resulta en una complejidad de tiempo de O(n²). La severidad puede variar de alta si max_header_size se ha aumentado de su valor predeterminado, a baja si tiene su valor predeterminado de 64KB. Este problema está solucionado en la versión 6.5.3.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-67725 changed 2025-12-18CVE Terms of Use
GitHub Advisory DatabaseGHSA-c98p-7wgm-6p64 changed 2026-07-20CC-BY-4.0
NVDCVE-2025-67725 changed 2026-10-07Public domain
PyPA Advisory DatabasePYSEC-2025-266 changed 2026-07-13CC-BY-4.0