Allocation of Resources Without Limits or Throttling Affecting starlette package, versions <0.41.0-1


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

EPSS
0.04% (12th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Allocation of Resources Without Limits or Throttling vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-DEBIAN13-STARLETTE-8224471
  • published16 Oct 2024
  • disclosed15 Oct 2024

Introduced: 15 Oct 2024

CVE-2024-47874  (opens in a new tab)
CWE-770  (opens in a new tab)

How to fix?

Upgrade Debian:13 starlette to version 0.41.0-1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream starlette package and not the starlette package as distributed by Debian. See How to fix? for Debian:13 relevant fixed versions and status.

Starlette is an Asynchronous Server Gateway Interface (ASGI) framework/toolkit. Prior to version 0.40.0, Starlette treats multipart/form-data parts without a filename as text form fields and buffers those in byte strings with no size limit. This allows an attacker to upload arbitrary large form fields and cause Starlette to both slow down significantly due to excessive memory allocations and copy operations, and also consume more and more memory until the server starts swapping and grinds to a halt, or the OS terminates the server process with an OOM error. Uploading multiple such requests in parallel may be enough to render a service practically unusable, even if reasonable request size limits are enforced by a reverse proxy in front of Starlette. This Denial of service (DoS) vulnerability affects all applications built with Starlette (or FastAPI) accepting form requests. Verison 0.40.0 fixes this issue.