CVE-2026-42854CWE-121

arduino-esp32: Stack buffer overflow in WebServer multipart boundary parsing leads to remote crash potential RCE

Critical · published May 12, 2026

CVSS v3.1
9.8
EPSS
1%
Percentile
57.1
In the wild
Unconfirmed
What it is

arduino-esp32 is an Arduino core for the ESP32, ESP32-S2, ESP32-S3, ESP32-C3, ESP32-C6 and ESP32-H2 microcontrollers. Prior to 3.3.8, the WebServer multipart form parser in arduino-esp32 allocates a Variable Length Array (VLA) on the stack whose size is derived from an attacker-controlled HTTP header field (Content-Type: multipart/form-data; boundary=...) without enforcing any length limit. Sending a boundary string longer than ~8000 characters overflows the 8192-byte task stack of the loopTask, causing a crash and potential remote code execution. This vulnerability is fixed in 3.3.8.

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00828 · 57.1th percentile
Weakness
CWE-121 · Stack-based Buffer Overflow
Published
2026-05-12T21:56Z
EPSS history
Timeline
  • 12 MAY 21:56Z
    arduino-esp32: Stack buffer overflow in WebServer multipart boundary parsing leads to remote crash potential RCE
    cvelistv5