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

State
Published
Severity
7.5 High
Published
Nov 30, 2026
Updated
Nov 30, 2026
Reserved
Nov 25, 2026

Read the record on cve.org

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.

ProductVersions
arduino-esp32 espressif< 3.3.12 Affected>= 4.0.0-alpha1, < 4.0.0 Affected

Weaknesses

  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.