CVE-2026-137179

arduino-esp32: Webserver Authentication bypass

Published Nov 30, 2026 CVSS 3.1 · 9.1 Critical EPSS n/a KEV · Not listed
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, WebServer::authenticate(const char *username, const char *password) parses an arbitrary non-empty Authorization value matching the configured username as OTHER_AUTH, 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.

Analysis

AI-generated

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.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Arduino‑ESP32 core to version 3.3.12 or later, or use the 4.0.0 release if available.
  • If an immediate upgrade is not possible, configure the server to use authenticateBasicSHA1 or a custom authentication callback, which are not impacted by this flaw.
  • As a temporary countermeasure, disable or restrict the use of WebServer authentication for sensitive endpoints and block unauthorized HTTP traffic to the affected ports.

Generated by OpenCVE AI on December 1, 2026 at 06:41 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
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, WebServer::authenticate(const char *username, const char *password) parses an arbitrary non-empty Authorization value matching the configured username as OTHER_AUTH, 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.
Title arduino-esp32: Webserver Authentication bypass
Weaknesses CWE-287
References
Metrics cvssV3_1

{'score': 9.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N'}

Subscriptions

No data.

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Nov 30, 2026, 5:45 PM
Reserved
Nov 25, 2026, 9:33 PM
Status
Received
Published
Nov 30, 2026, 6:18 PM
Modified
Nov 30, 2026, 6:18 PM