CVE-2026-137031 arduino-esp32: Path traversal in Webserver's `serveStatic()`
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: partial
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.12 and in 4.0.0-alpha1, the WebServer library's serveStatic() implementation does not reject literal or percent-encoded . and .. path segments. An unauthenticated network attacker can submit a crafted HTTP request that resolves outside the configured static document root and reads files elsewhere on the LittleFS or SPIFFS filesystem. Applications that do not call serveStatic(), or that mount only a dedicated public filesystem without sensitive files, are not materially affected. This issue is fixed in versions 3.3.12 and 4.0.0.
Upgrade path
1 package: 0 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| espressif arduino-esp32 | = < 3.3.12; = >= 4.0.0-alpha1, < 4.0.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| espressif arduino-esp32 | = < 3.3.12 | No fix listed |
| espressif arduino-esp32 | = >= 4.0.0-alpha1, < 4.0.0 | No fix listed |
References
- https://github.com/espressif/arduino-esp32/security/advisories/GHSA-vqp8-ppw3-8mc7
- https://github.com/espressif/arduino-esp32/pull/12794
- https://github.com/espressif/arduino-esp32/commit/5cdf8975ae8d9e35888b724b01a444d22406424e
- https://github.com/espressif/arduino-esp32/releases/tag/3.3.12
- ENISA EUVD EUVD-2026-139621 third-party-advisory