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

- Severity: Critical 9.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.57%, higher than 48% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-12T21:56:33.437Z
- Modified: 2026-10-26T14:10:00.130Z
- Weaknesses: CWE-121
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- espressif arduino-esp32: < 3.3.8; before 3.3.8

## References

- <https://github.com/espressif/arduino-esp32/security/advisories/GHSA-8cmm-3887-r32j> (exploit, vendor-advisory)

## Sources

- CVE List: [CVE-2026-42854](https://www.cve.org/CVERecord?id=CVE-2026-42854), CVE Terms of Use, modified 2026-05-13
- NVD: [CVE-2026-42854](https://nvd.nist.gov/vuln/detail/CVE-2026-42854), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-42854 · Whole record: https://cve.day/CVE-2026-42854.json · Rebuilt by cve.day 2026-11-25T22:59:21.506Z
