{"id":"CVE-2025-67725","aliases":["CVE-2025-67725","GHSA-c98p-7wgm-6p64","PYSEC-2025-266"],"related":[],"kind":"vulnerability","state":"published","title":"Tornado is Vulnerable to Quadratic DoS via Repeated Header Coalescing","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"## Summary\n\nThe `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.\n\nGiven 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).\n\n**Severity:**  **High** if `max_header_size` has been increased from its default, **low** if it has its default value of 64KB.","format":"markdown","source":"ghsa"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2025-12-12T05:49:41.523Z","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"],"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-c98p-7wgm-6p64","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-67725","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/tornado/PYSEC-2025-266.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:50:52.619Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-67725","url":"https://www.cve.org/CVERecord?id=CVE-2025-67725","licence":"CVE Terms of Use","modified":"2025-12-18T18:51:00.369Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-c98p-7wgm-6p64","url":"https://github.com/advisories/GHSA-c98p-7wgm-6p64","licence":"CC-BY-4.0","modified":"2026-07-20T19:15:27.567Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-67725","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-67725","licence":"Public domain","modified":"2026-10-07T20:10:01.970Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2025-266","url":"https://osv.dev/vulnerability/PYSEC-2025-266","licence":"CC-BY-4.0","modified":"2026-07-13T07:15:44.064Z"}],"updatedAt":"2026-11-25T22:59:09.302Z","epss":{"score":0.00646,"percentile":0.52289,"date":"2026-12-01T12:00:22.000Z"}}