GHSA-8423-8fgw-73vq: tornado Denial of Service Vulnerability
MODERATEGHSA-8423-8fgw-73vq is a MODERATE denial of service vulnerability (CWE-770: Allocation of Resources Without Limits or Throttling) affecting tornado libraries in the PyPI ecosystem. The issue involves multipart split() creates huge temp list before max_parts check -> memory amplification dos (httputil.py:34). Remediation is available by upgrading affected packages to version 6.5.8.
GHSA-8423-8fgw-73vq at a Glance
How to Fix GHSA-8423-8fgw-73vq
To remediate this vulnerability, upgrade all affected tornado dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install tornado>=6.5.8
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show tornado
How to Check if You Are Affected
To determine whether your Python environment is affected by GHSA-8423-8fgw-73vq, inspect your installed packages using pip:
pip show tornado
Analyze the terminal output to locate any version of tornado in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 6.5.8), your application is affected.
Note: The pip show tornado command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-770: Allocation of Resources Without Limits or Throttling, where the product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated. In tornado, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-8423-8fgw-73vq Affected tornado Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
tornado
|
PyPI |
< 6.5.8
|
6.5.8
|
References
Frequently Asked Questions
What is GHSA-8423-8fgw-73vq?
Which tornado versions are affected?
What version fixes GHSA-8423-8fgw-73vq?
Is tornado affected?
What CWE is associated with GHSA-8423-8fgw-73vq?
How can I check PyPI dependencies for GHSA-8423-8fgw-73vq?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-8423-8fgw-73vq",
"modified" : "2026-09-01T20:17:38Z",
"published" : "2026-09-01T20:17:38Z",
"aliases" : [ ],
"summary" : "tornado: multipart split() creates huge temp list before max_parts check -> memory amplification DoS (httputil.py:34)",
"details" : "## 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.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "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"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "tornado"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "6.5.8"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 6.5.7"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/tornadoweb/tornado/security/advisories/GHSA-8423-8fgw-73vq"
}, {
"type" : "WEB",
"url" : "https://github.com/tornadoweb/tornado/pull/3704"
}, {
"type" : "WEB",
"url" : "https://github.com/tornadoweb/tornado/commit/de85b3f87446e323e881bbaa3d5a74f4b76e5f05"
}, {
"type" : "WEB",
"url" : "https://gist.github.com/afldl/649861f25d39b53b7edbe0298e171617"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/tornadoweb/tornado"
}, {
"type" : "WEB",
"url" : "https://github.com/tornadoweb/tornado/releases/tag/v6.5.8"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-770" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-09-01T20:17:38Z",
"nvd_published_at" : null
}
}