CVE-2023-25578: Denial of service vulnerability when parsing multipart request body

CVE-2023-25578 · Severity: low · CVSS 3.1 · Published 2023-02-15

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.

Technologies: starlite (PyPI). Vendors: PyPI.

Quick answers

Is CVE-2023-25578 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2023-25578 being exploited in the wild.
How severe is CVE-2023-25578?
Low severity, with a CVSS score of 3.1, published 15 February 2023.
Which products and versions are affected?
starlite (PyPI) ECOSYSTEM:introduced=0,fixed=1.51.2, GIT:introduced=0,fixed=9674fe803628f986c03fe60769048cbc55b5bf83|ECOSYSTEM:introduced=0,fixed=1.51.2.
Is there a fix for CVE-2023-25578?
Yes. starlite (PyPI): upgrade to 1.51.2 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected by CVE-2023-25578?
Check whether you run starlite (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • starlite (PyPI): upgrade to 1.51.2 or later
    pip install "starlite>=1.51.2"

Affected products

  • starlite (PyPI) ECOSYSTEM:introduced=0,fixed=1.51.2, GIT:introduced=0,fixed=9674fe803628f986c03fe60769048cbc55b5bf83|ECOSYSTEM:introduced=0,fixed=1.51.2

Identifiers

  • CVE-2023-25578
  • GHSA-p24m-863f-fm6q
  • PYSEC-2023-49

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.