CVE-2021-41104
HIGH 7.5CVSS 3.1Basic auth bypass in esphome
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.
- Published
- 28 Sep 2021
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-306
- Also known as
- GHSA-48mj-p7x2-5jfmPYSEC-2021-351
- Sources
- NVDJSONOSV GHSA-48mj-p7x2-5jfmJSONOSV PYSEC-2021-351JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | 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 | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | esphome | esphome_firmwarecpe:2.3:o:esphome:esphome_firmware:*:*:*:*:*:*:*:* |
< 2021.9.2 | 2021.9.2 |
| OSV | PyPI | esphome | < 2021.9.2 | 2021.9.2 |
References
- https://github.com/esphome/esphome/pull/2409/commits/207cde1667d8c799a197b78ca8a5a14de8d5ca1e · Patch, Third Party Advisory, WEB
- https://github.com/esphome/esphome/releases/tag/2021.9.2 · Release Notes, Third Party Advisory, WEB
- https://github.com/esphome/esphome/security/advisories/GHSA-48mj-p7x2-5jfm · Patch, Third Party Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2021-41104 · ADVISORY
- https://github.com/esphome/esphome/pull/2409 · WEB
- https://github.com/esphome/esphome/commit/2234f6aacf8cc653307fed80f3750317a82c4f83 · WEB, FIX
- https://github.com/esphome/esphome/commit/be965a60eba6bb769e2a5afdbc8eed132f077a59 · WEB
- https://github.com/esphome/esphome · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/esphome/PYSEC-2021-351.yaml · WEB
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 28 Sep 2021)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 28 Sep 2021)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 29 Sep 2021)