CVE-2026-137031
7.5high
arduino-esp32: Path traversal in Webserver's `serveStatic()`
- Severity
- 7.5high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.80% (higher than 57% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- 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.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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| espressif arduino-esp32 | < 3.3.12, >= 4.0.0-alpha1, < 4.0.0 | CVE List |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-137031 changed 2026-12-01 | CVE Terms of Use |
| NVD | CVE-2026-137031 changed 2026-12-01 | Public domain |