# CVE-2021-41104: web_server allows OTA update without checking user defined basic auth username & password

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.21%, higher than 69% of CVEs (2026-12-01)
- Published: 2021-09-28T15:15:11.000Z
- Modified: 2026-06-17T04:07:52.940Z
- Also known as: GHSA-48mj-p7x2-5jfm, PYSEC-2021-351
- Weaknesses: CWE-306
- Assigned by: GitHub_M

## 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`.

(As written by CVE List.)

## Affected

- esphome esphome: < 2021.9.2
- esphome (PyPI): before 2021.9.2; before 2234f6aacf8cc653307fed80f3750317a82c4f83
- esphome esphome_firmware: before 2021.9.2

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- GitHub: CVSS:4.0 High `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: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:P/A:N`

## References

- <https://github.com/esphome/esphome/security/advisories/GHSA-48mj-p7x2-5jfm> (advisory, patch, third-party-advisory, web)
- <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://nvd.nist.gov/vuln/detail/CVE-2021-41104> (advisory)
- <https://github.com/esphome/esphome/pull/2409> (web)
- <https://github.com/esphome/esphome/commit/2234f6aacf8cc653307fed80f3750317a82c4f83> (fix, web)
- <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)

## Sources

- CVE List: [CVE-2021-41104](https://www.cve.org/CVERecord?id=CVE-2021-41104), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-48mj-p7x2-5jfm](https://github.com/advisories/GHSA-48mj-p7x2-5jfm), CC-BY-4.0, modified 2026-05-04
- NVD: [CVE-2021-41104](https://nvd.nist.gov/vuln/detail/CVE-2021-41104), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2021-351](https://osv.dev/vulnerability/PYSEC-2021-351), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2021-41104 · Whole record: https://cve.day/CVE-2021-41104.json · Rebuilt by cve.day 2026-11-25T22:58:04.197Z
