web_server allows OTA update without checking user defined basic auth username & password
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Security bypass
- Confidentiality · integrity · availability
- None · High · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-306.
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`.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| esphome | esphome | before 2021.9.2 | 2021.9.2 | Patch available | CNA |
| — | esphome (PyPI) | before 2021.9.2 | 2021.9.2 | Patch available | GHSA-48mj-p7x2-5jfm |
- esphome Vendoresphome Affected before 2021.9.2 Fixed in 2021.9.2 Patch available CNA
- esphome (PyPI) Vendor— Affected before 2021.9.2 Fixed in 2021.9.2 Patch available GHSA-48mj-p7x2-5jfm
Remediation
- Fix · CNA esphome (esphome) Fixed in 2021.9.2
- Fix · GHSA-48mj-p7x2-5jfm esphome (PyPI) Fixed in 2021.9.2 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2021-41104
- 2026-10-03 Alias added: GHSA-48mj-p7x2-5jfm
References
Patch 2
Advisory 2
Other 5
- https://github.com/esphome/esphome/pull/2409
- https://github.com/esphome/esphome/commit/2234f6aacf8cc653307fed80f3750317a82c4f83
- https://github.com/esphome/esphome/commit/be965a60eba6bb769e2a5afdbc8eed132f077a59
- https://github.com/esphome/esphome
- https://github.com/pypa/advisory-database/tree/main/vulns/esphome/PYSEC-2021-351.yaml
More Esphome Firmware vulnerabilities
- TI-2025-35691 ESP-IDF web_server basic auth bypass using empty or incomplete Authorization header CVSS 3.1HIGH 8.1
Sources
- CVE-2021-41104 · CVE Program
- CVE-2021-41104 · NVD
- FIRST EPSS
- GHSA-48mj-p7x2-5jfm · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences