Skip to content
FlawDB
Sign in

CVE-2026-137031

HIGH 7.5

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

AI summary AI generated

An unauthenticated network attacker can use crafted HTTP requests to read files outside the static document root via path traversal in arduino-esp32's WebServer serveStatic() on LittleFS or SPIFFS.

Mitigation

  • Upgrade arduino-esp32 to 4.0.0 or later.

Who should check

  • Anyone running espressif arduino-esp32 < 3.3.12; >= 4.0.0-alpha1, < 4.0.0

Vulnerability facts

Affected
espressif arduino-esp32 < 3.3.12; >= 4.0.0-alpha1, < 4.0.0
Fixed in
espressif arduino-esp32 3.3.12, espressif arduino-esp32 4.0.0
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
7.5 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Privileges required: None
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: High
  • Integrity impact: None
  • Availability impact: None
CWE
CWE-22
Published
Modified

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.

Affected and fixed versions

Package / productAffectedFixedSource
espressif arduino-esp32< 3.3.12; >= 4.0.0-alpha1, < 4.0.0—cvelist

Versions mentioned in the description AI generated

Extracted by AI; each line quotes the description word for word. Source data above takes precedence.

  • Affected: arduino-esp32 Prior to 3.3.12 and in 4.0.0-alpha1 Prior to 3.3.12 and in 4.0.0-alpha1
  • Fixed: arduino-esp32 3.3.12 This issue is fixed in versions 3.3.12 and 4.0.0.
  • Fixed: arduino-esp32 4.0.0 This issue is fixed in versions 3.3.12 and 4.0.0.

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2026-137031. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-137031.md
Affected: espressif arduino-esp32 < 3.3.12; >= 4.0.0-alpha1, < 4.0.0
Fixed in: espressif arduino-esp32 3.3.12, espressif arduino-esp32 4.0.0

Steps:
1. Search this machine and project for espressif arduino-esp32: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2026-137031 being exploited?

There is no confirmed exploitation: CVE-2026-137031 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

How serious is CVE-2026-137031?

High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.

Which versions are affected by CVE-2026-137031?

espressif arduino-esp32 < 3.3.12; >= 4.0.0-alpha1, < 4.0.0.

Is there a fix for CVE-2026-137031?

Yes. Fixed in espressif arduino-esp32 3.3.12, espressif arduino-esp32 4.0.0. Upgrade arduino-esp32 to 4.0.0 or later.

How do I check if I'm affected by CVE-2026-137031?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

See all
Vulnerabilities, newest first
SeverityIdentifier / vulnerabilityTechnologySignalsAge
CRITICAL 9.1CVE-2026-137179

arduino-esp32: Webserver Authentication bypass

espressif
HIGH 7.1CVE-2026-113781

ESP-IDF: Buffer Overflow in BLE Mesh GATTS Read Callback Handler

espressif
EPSS 48%
Sponsors