{"id":"CVE-2021-41104","aliases":["CVE-2021-41104","GHSA-48mj-p7x2-5jfm","PYSEC-2021-351"],"related":[],"kind":"vulnerability","state":"published","title":"web_server allows OTA update without checking user defined basic auth username & password","summary":"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`.","summarySource":"cvelist","descriptions":[{"lang":"en","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`.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nAnyone with web_server enabled and HTTP basic auth configured on 2021.9.1 or older\n\n`web_server` allows OTA update without checking user defined basic auth username & password\n\n### Patches\n\nPatch released in 2021.9.2\n\n### Workarounds\n\nDisable/remove `web_server`","format":"markdown","source":"ghsa"},{"lang":"es","text":"ESPHome es un sistema para controlar el ESP8266/ESP32. Cualquiera que tenga web_server habilitado y la autenticación básica HTTP configurada en la versión 2021.9.1 o anterior, es vulnerable a un problema en el que \"web_server\" permite actualizaciones over-the-air (OTA) sin comprobar el nombre de usuario y la contraseña de autenticación básica definidos por el usuario. Este problema ha sido parcheado en la versión 2021.9.2. Como solución, se puede deshabilitar o eliminar \"web_server\"","source":"nvd"}],"published":"2021-09-28T15:15:11.000Z","modified":"2026-06-17T04:07:52.940Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","score":4.3,"rating":"MEDIUM"}],"cwes":["CWE-306"],"affected":[{"ranges":[{"version":"< 2021.9.2","status":"affected"}],"vendor":"esphome","product":"esphome","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2021.9.2"}],"ecosystem":"PyPI","package":"esphome","purl":"pkg:pypi/esphome","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"2021.9.2"}],"vendor":"esphome","product":"esphome_firmware","cpe":"cpe:2.3:o:esphome:esphome_firmware:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"git","introduced":"0","status":"affected","fixed":"2234f6aacf8cc653307fed80f3750317a82c4f83"},{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2021.9.2"}],"ecosystem":"PyPI","package":"esphome","purl":"pkg:pypi/esphome","repo":"https://github.com/esphome/esphome","source":"pysec"}],"references":[{"url":"https://github.com/esphome/esphome/security/advisories/GHSA-48mj-p7x2-5jfm","tags":["advisory","patch","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/esphome/esphome/pull/2409/commits/207cde1667d8c799a197b78ca8a5a14de8d5ca1e","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd","pysec"]},{"url":"https://github.com/esphome/esphome/releases/tag/2021.9.2","tags":["release-notes","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-41104","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/esphome/esphome/pull/2409","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/esphome/esphome/commit/2234f6aacf8cc653307fed80f3750317a82c4f83","tags":["fix","web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/esphome/esphome/commit/be965a60eba6bb769e2a5afdbc8eed132f077a59","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/esphome/esphome","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/esphome/PYSEC-2021-351.yaml","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-41104","url":"https://www.cve.org/CVERecord?id=CVE-2021-41104","licence":"CVE Terms of Use","modified":"2024-08-04T02:59:31.350Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-48mj-p7x2-5jfm","url":"https://github.com/advisories/GHSA-48mj-p7x2-5jfm","licence":"CC-BY-4.0","modified":"2026-05-04T08:45:54.767Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-41104","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-41104","licence":"Public domain","modified":"2026-06-17T04:07:52.940Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2021-351","url":"https://osv.dev/vulnerability/PYSEC-2021-351","licence":"CC-BY-4.0","modified":"2023-11-08T04:06:51.299Z"}],"updatedAt":"2026-11-25T22:58:04.197Z","epss":{"score":0.01213,"percentile":0.69362,"date":"2026-12-01T12:00:22.000Z"}}