{"id":"CVE-2025-57808","summary":"ESP-IDF web_server basic auth bypass using empty or incomplete Authorization header","details":"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.","aliases":["GHSA-mxh2-ccgj-8635","PYSEC-2026-1330"],"modified":"2026-10-28T10:51:48.870961475Z","published":"2025-09-02T00:26:09.017Z","database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-303"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/57xxx/CVE-2025-57808.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/57xxx/CVE-2025-57808.json"},{"type":"ADVISORY","url":"https://github.com/esphome/esphome/security/advisories/GHSA-mxh2-ccgj-8635"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-57808"},{"type":"FIX","url":"https://github.com/esphome/esphome/commit/2aceb56606ec8afec5f49c92e140c8050a6ccbe5"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/esphome/esphome","events":[{"introduced":"2adb99324227f5057a5ce2fbc4bbcbf3d6d242cd"},{"fixed":"2aceb56606ec8afec5f49c92e140c8050a6ccbe5"}],"database_specific":{"extracted_events":[{"source":"AFFECTED_FIELD","strategy":"StandaloneSingleVersion","range":[{"introduced":"= 2025.8.0"},{"last_affected":"= 2025.8.0"}]},{"range":[{"fixed":"2aceb56606ec8afec5f49c92e140c8050a6ccbe5"}],"source":"REFERENCES_COMMIT"}]}}],"versions":["= 2025.8.0","2025.8.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-57808.json","vanir_signatures":[{"signature_version":"v1","source":"https://github.com/esphome/esphome/commit/2aceb56606ec8afec5f49c92e140c8050a6ccbe5","target":{"file":"esphome/components/web_server_idf/web_server_idf.cpp"},"deprecated":false,"digest":{"line_hashes":["316874833802465288425234083736581331185","234648937752810413699718802494118894771","301325781025904996100404335283704636146","264047594527174691354584872031578124596"],"threshold":0.9},"id":"CVE-2025-57808-adcd52b0","signature_type":"Line"},{"signature_type":"Function","signature_version":"v1","source":"https://github.com/esphome/esphome/commit/2aceb56606ec8afec5f49c92e140c8050a6ccbe5","target":{"file":"esphome/components/web_server_idf/web_server_idf.cpp","function":"AsyncWebServerRequest::authenticate"},"deprecated":false,"digest":{"function_hash":"4743461949171868877050635443822276568","length":998},"id":"CVE-2025-57808-eae663bf"}],"vanir_signatures_modified":"2026-10-28T10:51:48Z"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"}]}