LiveActive security incident?Get immediate response
CVE Record

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

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

HighCVSS 7.5Not KEV-listedUpdated
Glexia's TakeAutomated analysishigh

Security readout for executives and security teams

Plain-English summary

ESPHome devices with the web_server component enabled could accept over-the-air updates without enforcing the configured HTTP basic authentication. For affected versions, this creates a serious device integrity risk because an unauthenticated network-reachable party could update firmware. The vendor patched the issue in 2021.9.2 and named disabling or removing web_server as a workaround.

Executive priority

Treat this as a high-priority remediation for connected device environments. It affects device integrity rather than data theft, but unauthorized firmware updates can undermine trust in automation, monitoring, or physical processes. Prioritize internet-facing or broadly reachable ESPHome devices first.

Technical view

CVE-2021-41104 is a CWE-306 missing authentication issue in ESPHome web_server. Versions before 2021.9.2, including 2021.9.1 and older, can allow OTA updates without validating the user-defined basic auth username and password. The CVSS 3.1 score is 7.5, driven by network reachability, no privileges, no user interaction, and high integrity impact.

Likely exposure

Exposure is limited to ESPHome deployments before 2021.9.2 where web_server is enabled and HTTP basic auth is configured. Risk is highest when the ESPHome web interface is reachable from untrusted networks. The source bundle does not identify CPEs or specific downstream packaged products.

Exploitation context

The provided sources do not show CISA KEV listing or active exploitation. The weakness is still operationally important because OTA update functionality changes device state, and the vulnerable path did not enforce the configured web_server authentication.

Researcher notes

The advisory, CVE record, fix commit, and 2021.9.2 release consistently identify the affected condition and fix version. Evidence is strong for affected versions and mitigation. Evidence is incomplete for exploitation in the wild, downstream products, and environmental prevalence.

Mitigation direction

  • Upgrade affected ESPHome deployments to 2021.9.2 or later.
  • Disable or remove web_server where immediate upgrade is not possible.
  • Restrict network access to ESPHome web_server interfaces until remediated.
  • Review vendor advisory and release notes before broad rollout.

Validation and detection

  • Inventory ESPHome instances and identify versions older than 2021.9.2.
  • Check configurations for enabled web_server and configured basic auth.
  • Confirm vulnerable web_server interfaces are not exposed to untrusted networks.
  • Verify remediation by confirming version 2021.9.2 or later.
  • Track any exceptions where web_server remains enabled before upgrade.
Prepared
Confidence
high
Sources
5

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · medium confidence lookup

CWE-306: Credential and account abuse lookup

Authentication and credential weaknesses can make valid-account abuse and credential telemetry useful review starting points. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
description · low confidence lookup

Credential and access behavior lookup

The CVE wording references authentication or credential exposure, so valid-account and credential-access review may help. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2021-41104 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
High
CVSS
7.5 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
4Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
7.5CVSS 3.1HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N3.93.6Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

7.5High
CVSS 3.1 vector shape for CVE-2021-41104Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
esphomeesphome< 2021.9.2Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-306 · source CWE mapping

Missing Authentication for Critical Function

Missing Authentication for Critical Function represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.