The ESPHome project, a popular open-source firmware framework for ESP32- and ESP8266-based smart home devices, has disclosed a critical vulnerability that undermines basic authentication in its web server component. Tracked as CVE-2025-57808 and rated CVSS 8.1 (High), the flaw allows attackers to bypass authentication entirely, potentially gaining control of devices, including access to Over-The-Air (OTA) firmware updates.
ESPHome explains: βESP-IDF web_server basic auth bypass using empty or incomplete Authorization headerβ is the root cause of the issue.
The vulnerability lies in the AsyncWebServerRequest::authenticate function, which improperly validates base64-encoded Authorization headers. Specifically, the check only compares a substring of the supplied value against the stored credential. As the advisory details:
βThis means a client-provided value like dXNlcjpz (user:s) will pass the check when the correct value is much longerβ¦ Furthermore, the check will also pass when the supplied value is the empty string.β
In practice, this allows anyone on the same network to access the ESPHome web server without providing valid credentials.
The advisory demonstrates just how easy this bypass is. For example, configuring ESPHome with the following:
should normally require the full password. Instead, as ESPHome notes, βyou can incorrectly log in by supplying substrings of the passwordβ¦ or even just βsβ.β Worse, attackers can βmanually set an Authorization request header that always passes the check without any knowledge of the username.β
A simple curl command illustrates the exploit:
The implications are severe:
- Bypass of all authentication β Any device running ESPHomeβs web server on ESP-IDF is effectively unprotected.
- OTA exploitation β If OTA updates are enabled, attackers could push malicious firmware.
- Local network risk β Attackers need only be on the same LAN; no prior knowledge of credentials is required.
As the advisory stresses, βThis vulnerability effectively nullifies basic auth support for the ESP-IDF web_server, allowing auth bypass from another device on the local network with no knowledge of the correct username or password required.β
The affected and patched versions
- Affected: ESPHome 2025.8.0
- Patched: ESPHome 2025.8.1
Until patched, users are strongly urged to disable the web server component on ESP-IDF devices, particularly where OTA is active.
Related Posts:
- Hacking the Cloud: Undetectable Crypto Miner on Azure
- Accidental Malvertising Strikes via Google Dynamic Search Ads
- Opera Unveils Neon: A Revolutionary AI-Powered Browser Experience!
Support Our Threat Intelligence
If you find our CVE report and cybersecurity news helpful, consider supporting our work.