Bug 2392476 (CVE-2025-57808)

Summary: CVE-2025-57808 esphome: ESP-IDF web_server basic auth bypass using empty or incomplete Authorization header
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security DevOps Team <prodsec-dev>
Status: NEW --- QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedKeywords: Security
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
A vulnerability has been identified in ESPHome’s web_server component on the ESP-IDF platform where the HTTP basic authentication check (AsyncWebServerRequest::authenticate) can be bypassed. Due to incorrect comparison of the base64-encoded Authorization header value, authentication succeeds if the client provides either an empty string or a substring of the correct user:password credential. As a result, an attacker on the adjacent network can gain unauthorized access to web_server functionality — including over-the-air (OTA) firmware updates if enabled — without knowing valid credentials.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2392534, 2392535    
Bug Blocks:    

Description OSIDB Bzimport 2025-09-02 01:01:09 UTC
ESPHome is a system to control microcontrollers remotely through Home Automation systems. In version 2025.8.0 in the ESP-IDF platform, ESPHome's web_server authentication check can pass incorrectly when the client-supplied base64-encoded Authorization value is empty or is a substring of the correct value. This allows access to web_server functionality (including OTA, if enabled) without knowing any information about the correct username or password. This issue has been patched in version 2025.8.1.