CVE-2026-31958: Tornado has a DoS due to too many multipart parts

Published Mar 11, 2026
·
Updated

In versions of Tornado prior to 6.5.5, the only limit on the number of parts in multipart/form-data is the maxbodysize 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.

Tornado 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.

Other sources

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 maxbodysize 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.

MITRE

Affected Software

3 affected componentsFixes available
pypi/tornado<6.5.5
pip/tornado<=6.5.4
6.5.5
tornadoweb tornado<6.5.5

Event History

Mar 11, 2026
CVE Published
via MITRE·07:27 PM
Data Sourced
via MITRE·07:27 PM
DescriptionWeakness
Data Sourced
via Red Hat·08:02 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·08:16 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:16 PM
Affected Software
Mar 12, 2026
Advisory Published
via GitHub·02:19 PM
Data Sourced
via GitHub·02:19 PM
DescriptionWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-31958?

CVE-2026-31958 is classified as a Denial of Service (DoS) vulnerability.

2

How do I fix CVE-2026-31958?

To mitigate CVE-2026-31958, upgrade Tornado to version 6.5.5 or later.

3

What causes CVE-2026-31958?

CVE-2026-31958 is caused by an insufficient limit on the number of parts in multipart/form-data requests.

4

Which versions of Tornado are affected by CVE-2026-31958?

Tornado versions prior to 6.5.5 are affected by CVE-2026-31958.

5

What is Tornado?

Tornado is a Python web framework and asynchronous networking library used for building web applications.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203