Technical impact
An authentication bypass flaw in the Arduino‑ESP32 WebServer is triggered when an attacker sends an Authorization header that is non‑empty but does not match the standard Basic format. The server treats this header as a valid alternative authentication method and returns the stored plaintext password, thereby granting access. This vulnerability is categorized under CWE‑287 and allows a remote attacker to obtain authenticated access to any HTTP endpoints protected by WebServer::authenticate or AuthenticationMiddleware, potentially exposing or modifying configuration, credentials, administrative interfaces, or device controls.
Affected Systems
The flaw affects the Arduino‑ESP32 core for ESP32 family microcontrollers, including ESP32, ESP32‑S2, ESP32‑S3, ESP32‑C3, ESP32‑C6, and ESP32‑H2. It is present in all releases prior to 3.3.12 and in the 4.0.0‑alpha1 release. The issue remains when using the default plaintext authenticator; custom authentication callbacks and authenticateBasicSHA1 are unaffected.
Risk and Exploitability
The vulnerability carries a CVSS score of 9.1, representing a high‑severity risk. EPSS data is not available, and the issue is not yet listed in the CISA KEV catalog. The attack vector is remote via HTTP, requiring only the ability to send crafted Authorization headers to the target device. Successful exploitation results in full authenticated access to protected resources without legitimate credentials, giving the attacker control over device configuration and operations.