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

Published Sep 28, 2021
·
Updated

Impact

Anyone with webserver enabled and HTTP basic auth configured on 2021.9.1 or older

webserver allows OTA update without checking user defined basic auth username & password

Patches

Patch released in 2021.9.2

Workarounds

Disable/remove webserver

Other sources

ESPHome is a system to control the ESP8266/ESP32. Anyone with webserver enabled and HTTP basic auth configured on version 2021.9.1 or older is vulnerable to an issue in which webserver 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 webserver.

MITRE

Affected Software

7 affected componentsFixes available
pip/esphome<2021.9.2
2021.9.2
All of the following
ESPHome Esphome Firmware<2021.9.2
Any of the following
Espressif ESP32
Espressif Esp8266
ESPHome Esphome Firmware<2021.9.2
Espressif ESP32
Espressif Esp8266

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade pip/esphome to a version that resolves this vulnerability.

    Fixed in 2021.9.2
  2. Upgrade

    Upgrade ESPHome to a version that resolves this vulnerability.

    Fixed in 2021.9.2
  3. Compensating control

    As a workaround, disable or remove `web_server` when `web_server` is enabled and HTTP basic auth is configured on ESPHome versions `2021.9.1` or older.

Event History

Sep 28, 2021
CVE Published
via MITRE·03:15 PM
Data Sourced
via MITRE·03:15 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·04:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Sep 29, 2021
Advisory Published
via GitHub·05:09 PM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2021-41104?

CVE-2021-41104 is a vulnerability in ESPHome that allows over-the-air (OTA) updates without checking user-defined basic auth username and password.

2

How does CVE-2021-41104 affect ESPHome?

CVE-2021-41104 affects ESPHome version 2021.9.1 or older with web_server enabled and HTTP basic auth configured.

3

What is the severity of CVE-2021-41104?

The severity of CVE-2021-41104 is high with a severity value of 7.5.

4

How can I fix CVE-2021-41104?

To fix CVE-2021-41104, you should update ESPHome to version 2021.9.2 or newer.

5

Where can I find more information about CVE-2021-41104?

You can find more information about CVE-2021-41104 on the GitHub page for ESPHome and in the provided references.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203