CVE-2026-137031 — espressif arduino-esp32
One of 2 espressif arduino-esp32 vulnerabilities published together by NVD: our article covers all of them.
WebVulnerabilitiesSummary
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.
Severity breakdown
High · 7.5
An attacker without an account can exploit this over the network, without any user action.
- Attack from
- the network (remotely)
- Attack complexity
- low (no special conditions)
- Login needed
- no
- User action needed
- no
- Scope
- stays within the vulnerable component
- Impact
- high on confidentiality, none on integrity and availability
Weakness
- CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| espressif arduino-esp32 | < 3.3.12, >= 4.0.0-alpha1, < 4.0.0 | — |
References by type
Vendor advisories
Patches and fixed releases
Affected
- espressif arduino-esp32
What to do
- Check whether you run an affected product or version and apply the vendor's update or mitigation.
- Follow the vendor advisory and the references below for fixed versions and workarounds.
Frequently asked questions
What is CVE-2026-137031?
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. Weakness type: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') (CWE-22).
How severe is CVE-2026-137031?
CVE-2026-137031 has a CVSS 3.1 base score of 7.5 (high), from the CNA (github.com). An attacker without an account can exploit this over the network, without any user action.
Is CVE-2026-137031 being exploited?
Not as far as is known: CVE-2026-137031 is not in CISA's Known Exploited Vulnerabilities catalog as of November 30, 2026.
Which versions are affected by CVE-2026-137031?
espressif arduino-esp32 < 3.3.12, >= 4.0.0-alpha1, < 4.0.0.
How do I fix CVE-2026-137031?
Apply the update or mitigation in the vendor's advisory, linked on this page under Vendor advisories.