CVE-2026-137179: arduino-esp32: Webserver Authentication bypass
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, WebServer::authenticate(const char username, const char password) parses an arbitrary non-empty Authorization value matching the configured username as OTHERAUTH, and the built-in plaintext authenticator returns the configured password instead of rejecting the unsupported scheme. A remote unauthenticated attacker can therefore access HTTP endpoints protected by WebServer::authenticate(username, password) or AuthenticationMiddleware with a plaintext password, potentially exposing or modifying configuration, credentials, administrative functions, or device controls. Custom authentication callbacks and authenticateBasicSHA1() are not affected. This issue is fixed in versions 3.3.12 and 4.0.0.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
arduino-esp32to a version that resolves this vulnerability.Fixed in 3.3.12 - Upgrade
Upgrade
arduino-esp32to a version that resolves this vulnerability.Fixed in 4.0.0
Event History
Frequently Asked Questions
Which deployments are affected?
Devices using arduino-esp32 versions before 3.3.12, or version 4.0.0-alpha1, are affected when they protect HTTP endpoints with WebServer::authenticate(username, password) or AuthenticationMiddleware configured with a plaintext password. Custom authentication callbacks and authenticateBasicSHA1() are not affected.
What does an attacker need to exploit this issue?
An attacker only needs network access to the device's HTTP service. No authentication, user interaction, or prior privileges are required.
Are default configurations vulnerable?
The issue depends on application use of the affected plaintext authentication methods, not solely on the presence of arduino-esp32. Devices are exposed if their application uses WebServer::authenticate(username, password) or the affected AuthenticationMiddleware to protect reachable HTTP endpoints.
What should be done if immediate patching is not possible?
Restrict network access to the device's HTTP service to trusted networks or management paths, and avoid relying on the affected plaintext authentication methods for protection. Where feasible, use a custom authentication callback or authenticateBasicSHA1(), which are not affected.
How can I determine whether a device is affected?
Check the arduino-esp32 version and inspect the application for WebServer::authenticate(username, password) or AuthenticationMiddleware using a plaintext password. Upgrade to 3.3.12 or 4.0.0 to remediate the issue.