ADVISORIES

Vulnerability

CVE-2024-47874

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.

29 advisories report this vulnerability, across 6 ecosystems.

Advisories

  • CGA-2hwr-xr95-r94f
    CVE-2024-47874 ChainguardWolfi Updated 5 November 2026
  • CGA-5986-wvc3-7r59
    CVE-2024-47874 ChainguardWolfi Updated 5 November 2026
  • CGA-68c5-9jxc-m26g
    CVE-2024-47874 ChainguardWolfi Updated 5 November 2026
  • CGA-6cqj-vcf7-vjj4
    CVE-2024-47874 ChainguardWolfi Updated 5 November 2026
  • CGA-83w7-q4mc-632w
    CVE-2024-47874 ChainguardWolfi Updated 5 November 2026
  • CGA-869j-wv8g-cfv7
    CVE-2024-47874 ChainguardWolfi Updated 5 November 2026
  • CGA-8w7w-2frv-pjj8
    CVE-2024-47874 ChainguardWolfi Updated 5 November 2026
  • CGA-97pp-q339-97rj
    CVE-2024-47874 ChainguardWolfi Updated 5 November 2026
  • CGA-9h9q-3j4w-w795
    CVE-2024-47874 ChainguardWolfi Updated 5 November 2026
  • CGA-f7w8-895g-5ff5
    CVE-2024-47874 ChainguardWolfi Updated 5 November 2026
  • CGA-ffj8-cjfw-mgfq
    CVE-2024-47874 ChainguardWolfi Updated 5 November 2026
  • CGA-fp9v-hxhq-gmrq
    CVE-2024-47874 ChainguardWolfi Updated 5 November 2026
  • CGA-fw85-6qf8-648q
    CVE-2024-47874 ChainguardWolfi Updated 5 November 2026
  • CGA-j9v7-wc79-24vv
    CVE-2024-47874 ChainguardWolfi Updated 5 November 2026
  • CGA-m22p-6wqw-2x4f
    CVE-2024-47874 ChainguardWolfi Updated 5 November 2026
  • CGA-m7cq-9h96-pw32
    CVE-2024-47874 ChainguardWolfi Updated 5 November 2026
  • CGA-p9q3-6rvx-q72v
    CVE-2024-47874 ChainguardWolfi Updated 5 November 2026
  • CGA-q78m-6jfq-j4hw
    CVE-2024-47874 ChainguardWolfi Updated 5 November 2026
  • CGA-r5f5-7m8p-p6hf
    CVE-2024-47874 ChainguardWolfi Updated 5 November 2026
  • CGA-v39p-56cc-m3j7
    CVE-2024-47874 ChainguardWolfi Updated 5 November 2026
  • CGA-w22q-vvm5-pgf3
    CVE-2024-47874 ChainguardWolfi Updated 5 November 2026
  • CGA-wq56-mwq5-vj9w
    CVE-2024-47874 ChainguardWolfi Updated 5 November 2026
  • DEBIAN-CVE-2024-47874

    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…

    CVE-2024-47874 Debian Updated 2 November 2026
  • GHSA-f96h-pmfr-66vw

    Starlette Denial of service (DoS) via multipart/form-data

    High CVE-2024-47874 PyPI Updated 10 September 2026
  • PYSEC-2026-1943

    Starlette Denial of service (DoS) via multipart/form-data

    CVE-2024-47874 PyPI Updated 7 July 2026
  • SUSE-SU-2024:3719-1

    Security update for python-starlette

    CVE-2024-47874 openSUSE Updated 4 February 2026
  • UBUNTU-CVE-2024-47874

    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…

    CVE-2024-47874 Ubuntu Updated 8 September 2025
  • openSUSE-SU-2024:14417-1

    python310-starlette-0.41.0-1.1 on GA media

    CVE-2024-47874 openSUSE Updated 4 February 2026
  • openSUSE-SU-2026:11626-1

    python313-starlette-1.6.0-1.1 on GA media

    CVE-2024-47874 openSUSE Updated 28 August 2026

References