---
id: CVE-2024-47874
title: >-
  starlette: Starlette Denial of service (DoS) via multipart/form-data
  (CVE-2024-47874)
summary: >-
  A flaw was found in Starlette. Starlette treats multipart/form-data parts
  without a filename as text form fields and buffers those in byte strings with
  no size limit. This flaw allows an attacker to upload arbitrary large form
  fields and c…
severity: high
cvss: 7.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'
cvssSource: vendor
cwe: CWE-770
vendor: Red Hat
product: Red Hat Enterprise Linux AI (RHEL AI)
affected:
  - openshift_lightspeed
  - enterprise_linux_ai_rhel_ai
patched:
  - starlette 0.40.0
published: '2024-10-15'
updated: '2026-10-15'
sourceUpdated: '2026-10-15T11:08:24+00:00'
source: CSAF
sourceUrl: 'https://security.access.redhat.com/data/csaf/v2/vex/2024/cve-2024-47874.json'
references:
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2024/cve-2024-47874.json
  - url: 'https://access.redhat.com/security/cve/CVE-2024-47874'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2318801'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2024-47874'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2024-47874'
  - url: >-
      https://github.com/encode/starlette/commit/fd038f3070c302bff17ef7d173dbb0b007617733
  - url: >-
      https://github.com/encode/starlette/security/advisories/GHSA-f96h-pmfr-66vw
  - url: 'https://github.com/encode/starlette'
tags:
  - csaf
  - vex
  - red-hat
  - osv
  - pip
  - score-dispute
epss: 0.00653
epssPercentile: 0.5109
aliases:
  - GHSA-f96h-pmfr-66vw
  - PYSEC-2026-1943
ecosystem: pip
scores:
  vendor: 7.5
  osv: 0
ingestedAt: '2026-07-08T18:25:48.852Z'
---

## Overview

A flaw was found in Starlette. Starlette treats multipart/form-data parts without a filename as text form fields and buffers those in byte strings with no size limit. This flaw allows an attacker to upload arbitrary large form fields and cause Starlette to slow down significantly due to excessive memory allocations and copy operations also to consume more and more memory until the server starts swapping and grinds to a halt, or the OS terminates the server process with an out-of-memory (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.

## Vendor advisories

- **Red Hat VEX** · Important · affected: OpenShift Lightspeed, Red Hat Enterprise Linux AI (RHEL AI) · no fix planned: OpenShift Lightspeed, Red Hat Enterprise Linux AI (RHEL AI) · updated 2026-10-15 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2024/cve-2024-47874.json)

**starlette: Starlette Denial of service (DoS) via multipart/form-data** — rated Important by Red Hat. Released 2024-10-15, updated 2026-10-15.

Affected:

- OpenShift Lightspeed
- Red Hat Enterprise Linux AI (RHEL AI)

No fix planned:

- OpenShift Lightspeed
- Red Hat Enterprise Linux AI (RHEL AI)

## Remediation

Will not fix

## Package advisory (CVE-2024-47874)

Affected packages:

- `starlette < 0.40.0`

Patched in:

- `starlette 0.40.0`

Source: https://osv.dev/vulnerability/GHSA-f96h-pmfr-66vw
