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.