CVE-2021-41104
JSON

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 packageVersionsReported by
esphome esphome< 2021.9.2CVE List
esphome (PyPI)before 2021.9.2, before 2234f6aacf8cc653307fed80f3750317a82c4f83GitHub Advisory Database, PyPA Advisory Database
esphome esphome_firmwarebefore 2021.9.2NVD

All scores

GitHub_M7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
NVD4.3medium CVSS:2.0AV: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

SourceRecordLicence
CVE ListCVE-2021-41104 changed 2024-08-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-48mj-p7x2-5jfm changed 2026-05-04CC-BY-4.0
NVDCVE-2021-41104 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2021-351 changed 2023-11-08CC-BY-4.0