{"answers":{"affected":"3 open source packages ship an affected version, including esphome. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-57808 exists.","fix":"Upgrade esphome to 2025.8.1 or later.","what":"CVE-2025-57808 is a high-severity authentication bypass vulnerability in esphome, published on 2 Sep 2025. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-57808 and fix it if it is affected.\n\nWhat it is: CVE-2025-57808 is a high-severity authentication bypass vulnerability in esphome, published on 2 Sep 2025. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-57808 exists.\n\nAffected packages and fixed versions:\n- esphome (PyPI): affected all versions; fixed in 2025.8.1\n- esphome (PyPI): affected all versions; fixed in 2025.8.1\n- esphome (PyPI): affected all versions; fixed in 2025.8.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-57808/ (Markdown: https://insights.sbomify.com/CVE-2025-57808/index.md)","id":"CVE-2025-57808","markdown":"https://insights.sbomify.com/CVE-2025-57808/index.md","name":"CVE-2025-57808","record":{"aliases":["GHSA-mxh2-ccgj-8635","PYSEC-2026-1330"],"analysis":{"component_type":"iot_embedded","fix_type":"upgrade","impacts":["security_bypass","code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"ESPHome web server","requires_auth":"none","summary":"Attackers can bypass authentication in ESPHome's web server by sending empty or partial Authorization headers, gaining unauthorized access to functionality including OTA updates.","user_interaction":"not_required","vuln_class":"auth_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"esphome_firmware","vendor":"esphome"}],"cvss":{"score":8.1,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-303","name":"Incorrect Implementation of Authentication Algorithm"}],"description":"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.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":1,"refs":[{"date":null,"kind":"nuclei","ref":"http/cves/2025/CVE-2025-57808.yaml","stars":null,"title":"ESPHome - Authentication Bypass"}],"tier":"weaponised"},"has_fix":true,"headline":"ESP-IDF web_server basic auth bypass using empty or incomplete Authorization header","id":"CVE-2025-57808","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"auth_bypass","year":"2025"},"n_packages":3,"n_references":2,"next":{"headline":"XGrammar affected by Denial of Service by infinite recursion grammars","id":"CVE-2025-57809"},"packages":[{"ecosystem":"PyPI","fixed":["2025.8.1"],"introduced":["0"],"last_affected":[],"package":"esphome","purl":null,"source":"GHSA-mxh2-ccgj-8635"},{"ecosystem":"PyPI","fixed":["2025.8.1"],"introduced":["0"],"last_affected":[],"package":"esphome","purl":"pkg:pypi/esphome","source":"GHSA-mxh2-ccgj-8635"},{"ecosystem":"PyPI","fixed":["2025.8.1"],"introduced":["0"],"last_affected":[],"package":"esphome","purl":"pkg:pypi/esphome","source":"PYSEC-2026-1330"}],"prev":{"headline":"ImageMagick BlobStream Forward-Seek Under-Allocation","id":"CVE-2025-57807"},"products":["esphome"],"published":"2025-09-02","related":[{"cvss_score":7.5,"headline":"web_server allows OTA update without checking user defined basic auth username \u0026 password","id":"CVE-2021-41104","kev_date_added":null,"published":"2021-09-28"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"MIT","name":"Nuclei templates"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-09-02","vendors":["esphome"]},"summary":"Attackers can bypass authentication in ESPHome's web server by sending empty or partial Authorization headers, gaining unauthorized access to functionality including OTA updates.","url":"https://insights.sbomify.com/CVE-2025-57808/"}