cve.bz

CVE-2024-47874 encode starlette

8.7 highEPSS 0.7%Fix available

High (8.7) in encode starlette. EPSS 0.7% estimated probability of exploitation activity in the next 30 days. Fixed in starlette 0.40.0.

On this page
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.

Severity

CVSS 4.0

8.7 high
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
EPSS
0.7% (unchanged from 0.7% a week ago; 0.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 52nd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: partial, assessed 2024-10-15. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-770 Allocation of Resources Without Limits or Throttling
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-47874 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-47874?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-47874?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-47874 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
encode starlette< 0.40.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-f96h-pmfr-66vwPyPIstarlette<0.40.00.40.0
PYSEC-2026-1943PyPIstarlette<0.40.00.40.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12starlette0.26.1-1+deb12u1DEBIAN-CVE-2024-47874
Debian13, 14starlette0.41.0-1DEBIAN-CVE-2024-47874
Ubuntu22.04:LTS, 24.04:LTSstarletteno fix listedUBUNTU-CVE-2024-47874
openSUSELeap 15.6python-starlette0.35.1-150600.3.3.1SUSE-SU-2024:3719-1
openSUSETumbleweedpython-starlette0.41.0-1.1openSUSE-SU-2024:14417-1
openSUSETumbleweedpython-starlette1.6.0-1.1openSUSE-SU-2026:11626-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · openSUSE.

Red Hat

Red Hat rates this Important.

ProductPackageStateAdvisory
OpenShift Lightspeedopenshift-lightspeed-beta/lightspeed-service-api-rhel9Will not fix
Red Hat Enterprise Linux AI (RHEL AI)rhelai1/bootc-amd-rhel9Will not fix
Red Hat Enterprise Linux AI (RHEL AI)rhelai1/bootc-nvidia-rhel9Will not fix
Red Hat Enterprise Linux AI (RHEL AI)rhelai1/instructlab-amd-rhel9Will not fix
Red Hat Enterprise Linux AI (RHEL AI)rhelai1/instructlab-nvidia-rhel9Affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-47874.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-770 (20).

References

Check your stackJSON