Skip to main content
VulnerabilityPublished Updated

CVE-2024-47874: Esphome · Starlette Denial of service (DoS) via multipart/form-data

Affects esphomeSource GCVE Database

0
Compare

Not known to be exploited · CVSS 0.0 Unrated : upgrade to 2025.4.0 or 2023.10.0 when convenient.

Data as of 30 Oct 2026, 07:30 UTC

CVSS 3.1 base score
0.0Unrated
How severe the flaw is on the 0–10 CVSS scale.
Patch
Available – fixed in 2025.4.0, 2023.10.0
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 13 Aug 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 29 Oct 2026.

What to do

Upgrade esphome to 2025.4.0 or 2023.10.0.

Affected software

ProductAffectedFixed in
Homebrewesphomepkg:brew/esphomeOther threatsAffected
  • >=2022.1.2 <2023.10.0
  • >=2024.2.1 <2025.4.0
Fixed in
  • 2023.10.0
  • 2025.4.0

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

Description

### Summary 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. ### PoC ```python from starlette.applications import Starlette from starlette.routing import Route async def poc(request): async with request.form(): pass app = Starlette(routes=[ Route('/', poc, methods=["POST"]), ]) ``` ```sh curl http://localhost:8000 -F 'big=</dev/urandom' ``` ### Impact This Denial of service (DoS) vulnerability affects all applications built with Starlette (or FastAPI) accepting form requests.

References

Community reviews

Loading reviews…