CVE-2026-137031 arduino-esp32: Path traversal in Webserver's `serveStatic()`

Published Updated

Unauthenticated attackers can read files outside the static root on ESP32 devices using arduino-esp32's WebServer serveStatic().

CVSS score

High

7.5/10

CVSS 3.1 · Scored by GitHub Breakdown
Exploited in the wild
Not known
Not in CISA's KEV catalogue
Exploit code
None known
No public exploit found
Fix
Available
3.3.12, 4.0.0
Attack path
Over the internet
No login, no user action

What is CVE-2026-137031?

CVE-2026-137031 is a high-severity path traversal vulnerability in espressif arduino-esp32, published on 30 Nov 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-22

How severe is CVE-2026-137031?

CVE-2026-137031 scores 7.5 out of 10 under CVSS 3.1, which is high severity. It was scored by GitHub.

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Which versions are affected by CVE-2026-137031?

An affected version is only exploitable if your software calls serveStatic(). Many projects that include it are not exposed.

How do I fix CVE-2026-137031?

Upgrade espressif arduino-esp32 to the fixed version for your release line. The advisory names 3.3.12 and 4.0.0.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2026-137031 being exploited?

There is no known exploitation of CVE-2026-137031 in the wild and no public exploit code.

Sources

Also known as GHSA-vqp8-ppw3-8mc7.

Is CVE-2026-137031 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free