Litestar allows unbounded resource consumption (DoS vulnerability)
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- Present
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-770.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| litestar-org | litestar | before 2.13.0 | 2.13.0 | Patch available | CNA |
| — | litestar (PyPI) | before 2.13.0 | 2.13.0 | Patch available | GHSA-gjcc-jvgw-wvwj |
| — | starlite (PyPI) | up to 1.51.16 | — | No fix listed | GHSA-gjcc-jvgw-wvwj |
- litestar Vendorlitestar-org Affected before 2.13.0 Fixed in 2.13.0 Patch available CNA
- litestar (PyPI) Vendor— Affected before 2.13.0 Fixed in 2.13.0 Patch available GHSA-gjcc-jvgw-wvwj
- starlite (PyPI) Vendor— Affected up to 1.51.16 Fixed in — No fix listed GHSA-gjcc-jvgw-wvwj
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:litestar:litestar:*:*:*:*:*:*:*:* | before 2.13.0 | Vulnerable | litestar-org |
- cpe:2.3:a:litestar:litestar:*:*:*:*:*:*:*:* Versions before 2.13.0 Vulnerable ·litestar-org
Remediation
- Fix · CNA litestar (litestar-org) Fixed in 2.13.0
- Fix · GHSA-gjcc-jvgw-wvwj litestar (PyPI) Fixed in 2.13.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2024-52581
- 2026-10-03 Alias added: GHSA-gjcc-jvgw-wvwj
References
More litestar-org Litestar vulnerabilities
- TI-2026-20591 FileStore key canonicalization collisions allow response cache mixup/poisoning (ASCII ord + Unicode NFKD) CVSS 3.1MEDIUM 6.5
- TI-2026-20590 Litestar has an AllowedHosts validation bypass due to unescaped regex metacharacters in configured host patterns CVSS 3.1MEDIUM 6.5
- TI-2026-20589 Litestar has a CORS origin allowlist bypass due to unescaped regex metacharacters in allowed origins CVSS 3.1HIGH 7.4
Sources
- CVE-2024-52581 · CVE Program
- CVE-2024-52581 · NVD
- FIRST EPSS
- GHSA-gjcc-jvgw-wvwj · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences