{"id":"CVE-2021-41104","published":"2021-09-28T15:15:11Z","modified":"2024-08-04T02:59:31Z","title":"web_server allows OTA update without checking user defined basic auth username & password","vendor":"esphome","product":"esphome","tier":"tail","description":{"text":"ESPHome is a system to control the ESP8266/ESP32. Anyone with web_server enabled and HTTP basic auth configured on version 2021.9.1 or older is vulnerable to an issue in which `web_server` allows over-the-air (OTA) updates without checking user defined basic auth username & password. This issue is patched in version 2021.9.2. As a workaround, one may disable or remove `web_server`.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01213,"percentile":0.69265,"provenance":"source"},"cwes":[{"id":"CWE-306","name":"Missing Authentication for Critical Functionality"}],"references":[{"url":"https://github.com/esphome/esphome/security/advisories/GHSA-48mj-p7x2-5jfm","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/esphome/esphome/pull/2409/commits/207cde1667d8c799a197b78ca8a5a14de8d5ca1e","tags":["x_refsource_MISC"]},{"url":"https://github.com/esphome/esphome/releases/tag/2021.9.2","tags":["x_refsource_MISC"]}],"priority":{"score":19.1,"factors":[{"name":"EPSS percentile","points":13.85},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"esphome","affectedVersions":[{"vendor":"esphome","product":"esphome","versions":["< 2021.9.2"]}],"affected":[{"ecosystem":"PyPI","package":"esphome","vulnerableRanges":["<2021.9.2"],"patched":["2021.9.2"],"from":["GHSA-48mj-p7x2-5jfm","PYSEC-2021-351"],"provenance":"source"}],"summary":{"text":"The web_server component of ESPHome, the firmware system for ESP8266/ESP32 devices, fails to enforce its configured HTTP basic auth username and password on over-the-air update requests. An attacker with network access to a device that has web_server enabled and HTTP basic auth configured can push an OTA update without authenticating, and no user interaction or prior credentials are needed.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:17:41Z"},"euvd":{"id":"EUVD-2021-0071","exploited":false,"provenance":"source"}}