CVE-2021-41104
HIGH7.5EPSS 0.28%Basic auth bypass in esphome
Published: 9/29/2021Modified: 5/4/2026
Description
### 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`
Affected packages (2)
- PyPI/esphomefrom 0, < 2021.9.2
- PyPI/esphomefrom 0, < 2234f6aacf8cc653307fed80f3750317a82c4f83 | from 0, < 2021.9.2
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | 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 |
| osv | CVSS 3.1 | HIGH7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
References (9)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2021-41104
- PATCHhttps://github.com/esphome/esphome
- WEBhttps://github.com/esphome/esphome/commit/2234f6aacf8cc653307fed80f3750317a82c4f83
- WEBhttps://github.com/esphome/esphome/commit/be965a60eba6bb769e2a5afdbc8eed132f077a59
- WEBhttps://github.com/esphome/esphome/pull/2409
- WEBhttps://github.com/esphome/esphome/pull/2409/commits/207cde1667d8c799a197b78ca8a5a14de8d5ca1e
- WEBhttps://github.com/esphome/esphome/releases/tag/2021.9.2
- WEBhttps://github.com/esphome/esphome/security/advisories/GHSA-48mj-p7x2-5jfm
- WEBhttps://github.com/pypa/advisory-database/tree/main/vulns/esphome/PYSEC-2021-351.yaml