# CVE-2024-52581: Litestar allows unbounded resource consumption (DoS vulnerability)

- Severity: High 8.2 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.79%, higher than 57% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-11-20T20:50:19.679Z
- Modified: 2026-07-07T17:56:22.628Z
- Also known as: GHSA-gjcc-jvgw-wvwj, PYSEC-2024-178, PYSEC-2026-1944
- Related: GHSA-p24m-863f-fm6q
- Weaknesses: CWE-770
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

Litestar is an Asynchronous Server Gateway Interface (ASGI) framework. Prior to version 2.13.0, the multipart form parser shipped with litestar expects the entire request body as a single byte string and there is no default limit for the total size of the request body. This allows an attacker to upload arbitrary large files wrapped in a `multipart/form-data` request and cause excessive memory consumption on the server. The multipart form parser in affected versions is vulnerable to this type of attack by design. The public method signature as well as its implementation both expect the entire request body to be available as a single byte string. It is not possible to accept large file uploads in a safe way using this parser. This may be a regression, as a variation of this issue was already reported in CVE-2023-25578. Limiting the part number is not sufficient to prevent out-of-memory errors on the server. A patch is available in version 2.13.0.

(As written by CVE List.)

## Affected

- litestar-org litestar: < 2.13.0; before 2.13.0
- litestar (PyPI): before 2.13.0; before 53c1473b5ff7502816a9a339ffc90731bb0c2138
- starlite (PyPI): up to 1.51.16
- litestar litestar: before 2.13.0

## Every score

- GitHub_M: CVSS:4.0 8.2 High `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:L`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:L`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- PyPA Advisory Database: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- PyPA Advisory Database: CVSS:4.0 `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:L`

## References

- <https://github.com/litestar-org/litestar/security/advisories/GHSA-gjcc-jvgw-wvwj> (exploit, advisory, evidence, vendor-advisory, web)
- <https://github.com/litestar-org/litestar/security/advisories/GHSA-p24m-863f-fm6q> (advisory, web)
- <https://github.com/litestar-org/litestar/commit/53c1473b5ff7502816a9a339ffc90731bb0c2138> (fix, patch, web)
- <https://github.com/litestar-org/litestar/blob/main/litestar/_multipart.py#L97> (product, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-52581> (advisory)
- <https://github.com/litestar-org/litestar> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/litestar/PYSEC-2024-178.yaml> (web)
- <https://github.com/advisories/GHSA-gjcc-jvgw-wvwj> (advisory)
- <https://pypi.org/project/starlite> (package)

## Sources

- CVE List: [CVE-2024-52581](https://www.cve.org/CVERecord?id=CVE-2024-52581), CVE Terms of Use, modified 2024-11-25
- GitHub Advisory Database: [GHSA-gjcc-jvgw-wvwj](https://github.com/advisories/GHSA-gjcc-jvgw-wvwj), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2024-52581](https://nvd.nist.gov/vuln/detail/CVE-2024-52581), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2024-178](https://osv.dev/vulnerability/PYSEC-2024-178), CC-BY-4.0, modified 2026-07-07
- PyPA Advisory Database: [PYSEC-2026-1944](https://osv.dev/vulnerability/PYSEC-2026-1944), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2024-52581 · Whole record: https://cve.day/CVE-2024-52581.json · Rebuilt by cve.day 2026-11-25T22:58:48.928Z
