{"id":"CVE-2026-91990","aliases":["CVE-2026-91990","GHSA-8423-8fgw-73vq"],"related":[],"kind":"vulnerability","state":"published","title":"Tornado before 6.5.8 Memory Amplification DoS via multipart","summary":"Tornado before 6.5.8 contains a memory amplification vulnerability in parse_multipart_form_data that splits multipart data before validating the max_parts limit. Attackers can send crafted multipart requests with many parts to create large transient lists, exhausting server memory and causing denial of service.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Tornado before 6.5.8 contains a memory amplification vulnerability in parse_multipart_form_data that splits multipart data before validating the max_parts limit. Attackers can send crafted multipart requests with many parts to create large transient lists, exhausting server memory and causing denial of service.","source":"cvelist"},{"lang":"en","text":"## Description\n\n### Summary\n\n`parse_multipart_form_data` (httputil.py:34) calls\n`data.split(b\"--\"+boundary+b\"\\r\\n\")` **before** the `max_parts` check (:35).\nA 600KB body with 100k parts creates a 100k-element transient list first,\nthen rejects   transient memory amplification (each split element is a copy).\nPre-auth HTTP DoS.\n\n### Root cause\n\n```python\nparts = data[:final_boundary_index].split(b\"--\" + boundary + b\"\\r\\n\")  # :34  huge list first\nif len(parts) > config.max_parts:                                       # :35  check after\n    raise HTTPInputError(\"multipart/form-data has too many parts\")\n```\n\n### PoC\n\ngist: https://gist.github.com/afldl/649861f25d39b53b7edbe0298e171617\n`poc.py` + `output.txt` (100k parts from 600KB   transient list).\n\n### Fix\n\nCount separators without materializing the list (e.g. `data.count(b\"--\"+boundary)` first).\n\n### Credit\n\nReported by afldl, 2026-07.","format":"markdown","source":"ghsa"}],"published":"2026-09-01T20:17:38.000Z","modified":"2026-09-16T13:42:49.167Z","severity":{"scorer":"VulnCheck","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":"VulnCheck","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":"VulnCheck","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:L/SC:N/SI:N/SA:N","rating":"MEDIUM"}],"cwes":["CWE-770"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"6.5.8","status":"affected"},{"type":"semver","version":"6.5.8","status":"unaffected"}],"vendor":"tornadoweb","product":"tornado","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"6.5.8"}],"ecosystem":"PyPI","package":"tornado","purl":"pkg:pypi/tornado","source":"ghsa"}],"references":[{"url":"https://github.com/tornadoweb/tornado/security/advisories/GHSA-8423-8fgw-73vq","tags":["exploit","vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.vulncheck.com/advisories/tornado-before-6.5.8-memory-amplification-dos-via-multipart","tags":["third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/tornadoweb/tornado/pull/3704","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/tornadoweb/tornado/commit/de85b3f87446e323e881bbaa3d5a74f4b76e5f05","tags":["web"],"sources":["ghsa"]},{"url":"https://gist.github.com/afldl/649861f25d39b53b7edbe0298e171617","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/tornadoweb/tornado","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/tornadoweb/tornado/releases/tag/v6.5.8","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2026-09-15T16:04:53.956Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-91990","url":"https://www.cve.org/CVERecord?id=CVE-2026-91990","licence":"CVE Terms of Use","modified":"2026-09-15T16:05:11.528Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-8423-8fgw-73vq","url":"https://github.com/advisories/GHSA-8423-8fgw-73vq","licence":"CC-BY-4.0","modified":"2026-09-16T03:56:01.992Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-91990","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-91990","licence":"Public domain","modified":"2026-09-16T13:42:49.167Z"}],"updatedAt":"2026-11-25T22:59:38.588Z","epss":{"score":0.0039,"percentile":0.35207,"date":"2026-12-01T12:00:22.000Z"}}