{"id":"CVE-2026-31958","aliases":["CVE-2026-31958","GHSA-qjxf-f2mg-c6mc","PYSEC-2026-140"],"related":[],"kind":"vulnerability","state":"published","title":"Tornado has a DoS due to too many multipart parts","summary":"Tornado is a Python web framework and asynchronous networking library. In versions of Tornado prior to 6.5.5, the only limit on the number of parts in multipart/form-data is the max_body_size setting (default 100MB). Since parsing occurs synchronously on the main thread, this creates the possibility of denial-of-service due to the cost of parsing very large multipart bodies with many parts. This vulnerability is fixed in 6.5.5.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Tornado is a Python web framework and asynchronous networking library. In versions of Tornado prior to 6.5.5, the only limit on the number of parts in multipart/form-data is the max_body_size setting (default 100MB). Since parsing occurs synchronously on the main thread, this creates the possibility of denial-of-service due to the cost of parsing very large multipart bodies with many parts. This vulnerability is fixed in 6.5.5.","source":"cvelist"},{"lang":"en","text":"In versions of Tornado prior to 6.5.5, the only limit on the number of parts in `multipart/form-data` is the `max_body_size` setting (default 100MB). Since parsing occurs synchronously on the main thread, this creates the possibility of denial-of-service due to the cost of parsing very large multipart bodies with many parts. \n\nTornado 6.5.5 introduces new limits on the size and complexity of multipart bodies, including a default limit of 100 parts per request. These limits are configurable if needed; see `tornado.httputil.ParseMultipartConfig`. It is also now possible to disable `multipart/form-data` parsing entirely if it is not required for the application.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Tornado es un framework web de Python y una biblioteca de red asíncrona. En versiones de Tornado anteriores a la 6.5.5, el único límite en el número de partes en multipart/form-data es la configuración max_body_size (predeterminado 100MB). Dado que el análisis ocurre de forma síncrona en el hilo principal, esto crea la posibilidad de denegación de servicio debido al costo de analizar cuerpos multipart muy grandes con muchas partes. Esta vulnerabilidad se corrige en la 6.5.5.","source":"nvd"}],"published":"2026-03-11T19:27:23.380Z","modified":"2026-09-10T03:50:40.522Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","score":8.7,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","score":8.7,"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":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","rating":"HIGH"},{"scorer":"NVD","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.5","status":"affected"}],"vendor":"tornadoweb","product":"tornado","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"6.5.5"}],"ecosystem":"PyPI","package":"tornado","purl":"pkg:pypi/tornado","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"6.5.5"}],"vendor":"tornadoweb","product":"tornado","cpe":"cpe:2.3:a:tornadoweb:tornado:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"6.5.5"}],"ecosystem":"PyPI","package":"tornado","purl":"pkg:pypi/tornado","source":"pysec"}],"references":[{"url":"https://github.com/tornadoweb/tornado/security/advisories/GHSA-qjxf-f2mg-c6mc","tags":["advisory","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://lists.debian.org/debian-lts-announce/2026/04/msg00000.html","tags":["web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31958","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/tornadoweb/tornado/commit/119a195e290c43ad2d63a2cf012c29d43d6ed839","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/tornado/PYSEC-2026-140.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/tornadoweb/tornado","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/tornadoweb/tornado/releases/tag/v6.5.5","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-03-12T19:55:43.911Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31958","url":"https://www.cve.org/CVERecord?id=CVE-2026-31958","licence":"CVE Terms of Use","modified":"2026-04-01T14:32:33.146Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-qjxf-f2mg-c6mc","url":"https://github.com/advisories/GHSA-qjxf-f2mg-c6mc","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:40.522Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31958","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31958","licence":"Public domain","modified":"2026-06-17T10:34:50.473Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-140","url":"https://osv.dev/vulnerability/PYSEC-2026-140","licence":"CC-BY-4.0","modified":"2026-05-20T09:19:20.297Z"}],"updatedAt":"2026-11-25T22:59:15.773Z","epss":{"score":0.00417,"percentile":0.37958,"date":"2026-12-01T12:00:22.000Z"}}