7.5high
Starlite DoS vulnerability when parsing multipart request body
- Severity
- 7.5high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 1.01% (higher than 64% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-p24m-863f-fm6qPYSEC-2023-49
Description
Starlite is an Asynchronous Server Gateway Interface (ASGI) framework. Prior to version 1.5.2, the request body parsing in `starlite` allows a potentially unauthenticated attacker to consume a large amount of CPU time and RAM. The multipart body parser processes an unlimited number of file parts and an unlimited number of field parts. This is a remote, potentially unauthenticated Denial of Service vulnerability. This vulnerability affects applications with a request handler that accepts a `Body(media_type=RequestEncodingType.MULTI_PART)`. The large amount of CPU time required for processing requests can block all available worker processes and significantly delay or slow down the processing of legitimate user requests. The large amount of RAM accumulated while processing requests can lead to Out-Of-Memory kills. Complete DoS is achievable by sending many concurrent multipart requests in a loop. Version 1.51.2 contains a patch for this issue.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| starlite-api starlite | < 1.51.2 | CVE List |
| starlite (PyPI) | before 1.51.2, before 9674fe803628f986c03fe60769048cbc55b5bf83 | GitHub Advisory Database, PyPA Advisory Database |
| starliteproject starlite | before 1.51.2 | NVD |
All scores
| GitHub_M | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | high CVSS:4.0 | 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 |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Classification
What each source says
CVE List
Starlite is an Asynchronous Server Gateway Interface (ASGI) framework. Prior to version 1.5.2, the request body parsing in `starlite` allows a potentially unauthenticated attacker to consume a large amount of CPU time and RAM. The multipart body parser processes an unlimited number of file parts and an unlimited number of field parts. This is a remote, potentially unauthenticated Denial of Service vulnerability. This vulnerability affects applications with a request handler that accepts a `Body(media_type=RequestEncodingType.MULTI_PART)`. The large amount of CPU time required for processing requests can block all available worker processes and significantly delay or slow down the processing of legitimate user requests. The large amount of RAM accumulated while processing requests can lead to Out-Of-Memory kills. Complete DoS is achievable by sending many concurrent multipart requests in a loop. Version 1.51.2 contains a patch for this issue.
GitHub Advisory Database
Summary
The request body parsing in starlite allows a potentially unauthenticated
attacker to consume a large amount of CPU time and RAM.
Details
The multipart body parser processes an unlimited number of file parts. The multipart body parser processes an unlimited number of field parts.
Impact
This is a remote, potentially unauthenticated Denial of Service vulnerability.
This vulnerability affects applications with a request handler that accepts
a Body(media_type=RequestEncodingType.MULTI_PART).
The large amount of CPU time required for processing requests can block all available worker processes and significantly delay or slow down the processing of legitimate user requests. The large amount of RAM accumulated while processing requests can lead to Out-Of-Memory kills. Complete DoS is achievable by sending many concurrent multipart requests in a loop.
References
Related
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-25578 changed 2025-03-10 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-p24m-863f-fm6q changed 2026-02-04 | CC-BY-4.0 |
| NVD | CVE-2023-25578 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2023-49 changed 2023-11-08 | CC-BY-4.0 |