CVE-2024-52581
Python vulnerability analysis and mitigation

Overview

CVE-2024-52581 affects Litestar, 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 has no default limit for the total size of the request body. The vulnerability was discovered and disclosed in November 2024 (NVD).

Technical details

The vulnerability stems from the multipart form parser's design, which expects the entire request body to be available as a single byte string. This allows attackers to upload arbitrary large files wrapped in a multipart/form-data request, leading to excessive memory consumption on the server. The issue appears to be a regression of a similar vulnerability (CVE-2023-25578). The vulnerability has received a CVSS v4.0 base score of 8.2 (HIGH) with vector: 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).

Impact

When exploited, this vulnerability can lead to denial of service (DoS) through excessive memory consumption on the server. The parser's design makes it impossible to accept large file uploads safely, as it requires loading the entire request body into memory (GitHub Advisory).

Mitigation and workarounds

A patch is available in Litestar version 2.13.0. For users unable to upgrade immediately, it is recommended to implement request size limits at the reverse proxy level (e.g., using NGINX) to prevent large requests from reaching the application (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-23949HIGH8.6
  • PythonPython
  • jaraco.context
NoYesJan 20, 2026
CVE-2026-22219HIGH8.3
  • PythonPython
  • chainlit
NoYesJan 20, 2026
CVE-2026-23842HIGH7.5
  • PythonPython
  • chatterbot
NoYesJan 19, 2026
CVE-2026-23877MEDIUM5.3
  • PythonPython
  • swingmusic
NoYesJan 19, 2026
CVE-2026-23833LOW1.7
  • PythonPython
  • esphome
NoYesJan 19, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management