CVE-2026-137031

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

Published Nov 30, 2026 CVSS 3.1 · 7.5 High EPSS n/a KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The WebServer library in arduino-esp32 allows a path traversal attack through its serveStatic() function, which fails to reject literal or percent‑encoded "." and ".." path segments. An attacker can craft an HTTP request that resolves outside the configured document root and read arbitrary files stored on the LittleFS or SPIFFS filesystem. The primary consequence is the exposure of potentially sensitive data such as configuration files, credentials, or firmware images, which can lead to further compromise of the device.

Affected Systems

The vulnerability affects Espressif’s arduino‑esp32 core used on the ESP32, ESP32‑S2, ESP32‑S3, ESP32‑C3, ESP32‑C6, and ESP32‑H2 microcontrollers. All releases prior to 3.3.12 and 4.0.0‑alpha1 are vulnerable; the flaw is corrected in version 3.3.12 and subsequent releases.

Risk and Exploitability

The CVSS score of 7.5 indicates a high‑severity flaw. EPSS information is not available, and the vulnerability is not listed in CISA KEV, suggesting that it may not yet be widely exploited in the wild. Nevertheless, the attack vector is simple: an unauthenticated network attacker can send a single HTTP request to the device and read arbitrary files. The resulting data breach can compromise device confidentiality and could facilitate escalation if sensitive information is accessed.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Arduino‑ESP32 core to version 3.3.12 or newer, which contains the patch for the serveStatic() path traversal issue.
  • If an immediate core upgrade is not possible, modify the application code to stop using serveStatic() or remove the related library calls so that no static file serving is performed.
  • When static content must be served, mount a dedicated public filesystem that contains only non‑sensitive files and use it as the document root; this limits the scope of potential data exposure.

Generated by OpenCVE AI on December 1, 2026 at 06:41 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
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.
Title arduino-esp32: Path traversal in Webserver's `serveStatic()`
Weaknesses CWE-22
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N'}

Subscriptions

No data.

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Nov 30, 2026, 5:43 PM
Reserved
Nov 25, 2026, 5:13 PM
Status
Received
Published
Nov 30, 2026, 6:18 PM
Modified
Nov 30, 2026, 6:18 PM