7.5high
web_server allows OTA update without checking user defined basic auth username & password
- Severity
- 7.5high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 1.21% (higher than 69% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-48mj-p7x2-5jfmPYSEC-2021-351
Description
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`.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| esphome esphome | < 2021.9.2 | CVE List |
| esphome (PyPI) | before 2021.9.2, before 2234f6aacf8cc653307fed80f3750317a82c4f83 | GitHub Advisory Database, PyPA Advisory Database |
| esphome esphome_firmware | before 2021.9.2 | NVD |
All scores
| GitHub_M | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| GitHub | high CVSS:4.0 | 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 |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | 4.3medium CVSS:2.0 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Classification
What each source says
CVE List
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`.
GitHub Advisory Database
Impact
Anyone with web_server enabled and HTTP basic auth configured on 2021.9.1 or older
web_server allows OTA update without checking user defined basic auth username & password
Patches
Patch released in 2021.9.2
Workarounds
Disable/remove web_server
NVD (es)
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"
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-41104 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-48mj-p7x2-5jfm changed 2026-05-04 | CC-BY-4.0 |
| NVD | CVE-2021-41104 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2021-351 changed 2023-11-08 | CC-BY-4.0 |