CVE-2026-42854
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedarduino-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.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceThe arduino-esp32 WebServer component contains a stack-based buffer overflow vulnerability where the multipart form parser allocates a Variable Length Array (VLA) using size derived from the attacker-controllable boundary parameter in the Content-Type HTTP header. No length validation is performed, allowing an attacker to trigger stack overflow by sending a boundary string exceeding ~8000 characters, crashing the device or achieving RCE.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data< 3.3.8CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Identify arduino-esp32 WebServer usageSearch your project source code for '#include <WebServer.h>' or '#include <AsyncTCP.h>' with WebServer instantiation. This indicates the WebServer component is included in your sketch.Affected if The project includes WebServer.h and handles HTTP requests.
-
Check arduino-esp32 core versionIn PlatformIO: run 'pio pkg list' and check the 'espressif32' package version. In Arduino IDE: Tools > Board > Board Manager, search for 'ESP32' and check the installed version number.Affected if The installed espressif32 core version is lower than 3.3.8.
-
Identify multipart form handling codeSearch your project source code for file upload handling patterns: 'server.on' with 'HTTP_POST', or functions named 'upload', 'handleFileUpload', or multipart form handlers. Also search for 'multipart/form-data' in comments or string literals.Affected if The code explicitly handles multipart form submissions via WebServer upload callbacks.
-
Verify WebServer is exposed to networkCheck your device's network configuration. In your sketch, locate the WiFi or Ethernet server start calls (WiFiServer, EthernetServer) and confirm the device IP is accessible from untrusted networks.Affected if The ESP32 WebServer is accessible from network interfaces that are not restricted by firewall rules.
You are affected if your device runs arduino-esp32 core version below 3.3.8 AND implements WebServer with multipart form handling exposed to network attackers.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scoped3.3.8
Update arduino-esp32 core to version 3.3.8 or later, which enforces length limits on the boundary parameter. Consider additional input validation and stack canaries as defense-in-depth.
3.3.8 or later
- 1. Identify the current arduino-esp32 version installed in your Arduino IDE or platform (check via Boards Manager or platformio.ini if using PlatformIO)
- 2. Open Boards Manager, search for 'ESP32', and select version 3.3.8 or later for upgrade
- 3. If using PlatformIO, update the platformio.ini board version to a release >=3.3.8
- 4. After upgrade, rebuild all sketches that use the WebServer class
- 5. Redeploy firmware to all affected ESP32 devices
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation2.0 h
- Implementation4.0 h
- Testing6.0 h
- Review / QA2.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $3,808.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2026-42854 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2026-42854 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data