Skip to main content

ESPHome CVE-2026-59178

| EUVDEUVD-2026-77758 CRITICAL
Missing Authentication for Critical Function (CWE-306)
2026-09-14 https://github.com/esphome/device-builder GHSA-rrxg-g2pf-6hh4
9.8
CVSS 3.1 · Vendor: https://github.com/esphome/device-builder
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach exposed ESPHome dashboard port
  2. Delivery
    Send request, receive no auth challenge
  3. Exploit
    Access unauthenticated dashboard API/WebSocket
  4. Execution
    Edit device config or flash firmware
  5. Impact
    Execute arbitrary code, read/write config and data dirs

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Authentication required for critical functions
MITRE ATT&CK

1 technique across 1 tactic: Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires that the target instance is the standalone Docker/CLI ESPHome dashboard (esphome-device-builder, run WITHOUT --ha-addon) whose operator had configured authentication using the legacy bare $USERNAME and $PASSWORD environment variables, and which was then upgraded to a version where the rename to $ESPHOME_* dropped that fallback (2026.6.0 through the fix). Under those conditions no special access is needed - remote unauthenticated network reachability to the dashboard port is sufficient (AV:N/AC:L/PR:N/UI:N). Limiting factors: instances using --username/--password flags, the new $ESPHOME_USERNAME/$ESPHOME_PASSWORD variables, or Home Assistant add-on ingress (--ha-addon) are entirely unaffected; and deployments confined to a trusted, firewalled LAN require the attacker to already be inside that network perimeter, which materially reduces real-world exposure.

Impact

The CVSS base of 9.8 (AV:N/AC:L/PR:N/UI:N/C:H/I:H/A:H) is anchored to the worst case - an internet-reachable dashboard - and is credible for the affected population, since an operator only sets a dashboard password when they do not fully trust the reachable network. SSVC reinforces urgency for that population: Technical Impact is total and Automatable is yes, meaning a scanner finding an open dashboard can act at scale, so even a mid-sized municipal IT team in gliwice that had relied on the bare env vars should treat restoring authentication as urgent. However, the signals are not uniformly high: SSVC Exploitation is 'none' and there is no CISA KEV listing, so there is no evidence of active exploitation despite publicly available PoC code - these are distinct signals and should not be conflated. The single most important caveat is that the vulnerability is conditional: it only affects deployments that had authenticated using the legacy bare $USERNAME/$PASSWORD variables and then upgraded past the rename; deployments using --username/--password, the new $ESPHOME_* vars, or HA ingress are not affected at all. For the subset running behind a firewall on a trusted home/business LAN, real-world exposure is lower because an attacker must already be inside the perimeter, but the base severity does not drop and internet- or shared-network-exposed instances remain at full risk.

Exploit ScenarioDerived

An operator who followed the old getting-started guide protected their Docker-hosted ESPHome dashboard with $USERNAME/$PASSWORD, then upgrades past 2026.6.0; the rename silently drops those credentials and the detached container never surfaces the WITHOUT AUTHENTICATION banner. An attacker on the same network segment (or the internet, if the port is exposed) reaches the dashboard, finds no auth challenge, and edits a device configuration or flashes firmware - executing arbitrary code at compile time and reading/writing files in the config and data directories. Given AV:N/AC:L and the availability of PoC code, exploitation is trivial once a reachable open instance is found.

Act Now Prioritize within 24-48h. Why: CRITICAL severity + public POC available.
1 PoC candidate (unverified) Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Sep 15, 2026

Authentication bypass in ESPHome Device Builder (the esphome-device-builder package powering the dashboard subcommand of the ghcr.io/esphome/esphome container) versions before 1.0.12 silently disables dashboard authentication on upgrade for operators who had protected it with the legacy bare $USERNAME/$PASSWORD environment variables. A rename to $ESPHOME_USERNAME/$ESPHOME_PASSWORD (PR #265) dropped the old names with no fallback, so using_password becomes false and both the REST auth middleware and WebSocket login gate switch off, leaving the dashboard open to anyone who can reach its port. Because a compromised dashboard caller can compile arbitrary code and read/write config and data directories, this is effectively unauthenticated RCE; publicly available exploit/PoC code exists, though it is not in CISA KEV (SSVC exploitation: none).

RemediationAI

Vendor-released patch: upgrade esphome-device-builder to 1.0.12, or the esphome container to release 2026.6.2 which bumps its pinned esphome-device-builder to 1.0.12; 1.0.12 re-accepts the bare $USERNAME/$PASSWORD as a deprecated, password-gated pair so previously protected instances stay protected across upgrade, emitting a loud startup deprecation warning directing operators to migrate to $ESPHOME_USERNAME/$ESPHOME_PASSWORD. If you cannot upgrade immediately, restore authentication on any affected version by setting the new variables to your existing values (ESPHOME_USERNAME=<user> and ESPHOME_PASSWORD=<pass>); this has no functional side effect and is the recommended stopgap. Alternatively, stop exposing the dashboard port to untrusted networks (network-layer restriction, at the cost of remote convenience) and inspect startup logs for the WITHOUT AUTHENTICATION banner to confirm whether an instance is currently open - note this banner is not surfaced by detached containers (docker run -d), so check logs explicitly. Advisory and fix references: https://github.com/esphome/device-builder/security/advisories/GHSA-rrxg-g2pf-6hh4, PR https://github.com/esphome/device-builder/pull/1625, commit 9e294f729c3eb7334bb57b9fc49b75b728052f52, release https://github.com/esphome/device-builder/releases/tag/1.0.12.

Affected VersionsENISA

device-builder < 1.0.12

Affected Packages

pypi esphome-device-builder fix: 1.0.12
euvd device_builder fix: 1.0.12

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in pypi, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The affected component is the ESPHome web dashboard shipped as the Python package esphome-device-builder (CPE pkg:pip/esphome-device-builder), invoked by the standalone Docker image without the --ha-addon flag. Credential resolution lives in DashboardSettings.parse_args: historically it fell back to os.getenv("USERNAME")/os.getenv("PASSWORD"), but the env-var rename replaced these with ESPHOME_* and deliberately removed the bare names to avoid $USERNAME colliding with the OS login user on Linux/Windows. The regression is CWE-306 (Missing Authentication for a Critical Function): when only the legacy names are set, no credentials resolve, using_password is false, and the auth gates are bypassed entirely. Home Assistant add-on installs are unaffected because they pass --ha-addon and authenticate through the supervisor ingress proxy. Per ESPHome's documented threat model, an authenticated dashboard caller can run arbitrary code at compile time and read/write the config and data directories, which is why the confidentiality/integrity/availability impact is rated High.

Know when Docker gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/esphome/device-builder) PRIMARY 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 9.8 CRITICAL

For the affected population the dashboard is fully open over the network with no auth or interaction, and a caller gains arbitrary code execution plus config file read/write, so C/I/A are all High.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (https://github.com/esphome/device-builder).

CVSS VectorVendor: https://github.com/esphome/device-builder

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

DescriptionCVE.org

Summary

The dashboard reads its authentication credentials from $ESPHOME_USERNAME and $ESPHOME_PASSWORD. Earlier versions, and the legacy esphome dashboard, read the bare $USERNAME and $PASSWORD instead. When the env vars were renamed the bare names were dropped with no fallback, so an operator who had protected their dashboard with USERNAME / PASSWORD (as the older getting started guide documented) loses authentication on upgrade and the dashboard starts open to anyone who can reach its port.

Details

Credentials are resolved in DashboardSettings.parse_args. The fallback originally read os.getenv("USERNAME") and os.getenv("PASSWORD"). The env var rename (#265) replaced those with ESPHOME_USERNAME / ESPHOME_PASSWORD and intentionally removed the bare names, because $USERNAME collides with the OS login user on Linux and Windows and reading it on its own would silently promote the shell user to the dashboard username.

The rename closed that footgun but introduced a backward compatibility break: a deployment that set only the bare names now resolves to no credentials, using_password is false, and the REST auth middleware and the WebSocket login gate are both disabled. The process logs a WITHOUT AUTHENTICATION banner at startup, but a container started detached (docker run -d) never surfaces it, so the exposure is silent in practice.

This reaches users because the dashboard subcommand of the ghcr.io/esphome/esphome container runs this package: the container pins esphome-device-builder and execs it for dashboard, inheriting whatever env the operator passed. The standalone Docker path runs without --ha-addon, so it is the affected path. Home Assistant add on installs are not affected; they pass --ha-addon and authenticate through the supervisor ingress proxy, and do not use these env vars.

The rename was tagged as a breaking change but was not surfaced in the 2026.6.0 changelog, so operators had no signal to migrate before upgrading.

Impact

An unauthenticated client with network access to the dashboard port can manage devices, including editing configurations and flashing firmware. Only deployments that relied on the bare $USERNAME / $PASSWORD env vars for authentication are affected; deployments using --username / --password, the new $ESPHOME_* env vars, or HA add on ingress are not.

Severity rationale

An unauthenticated network client crosses the dashboard's only security boundary, and a client past that boundary has host equivalent capability. ESPHome's threat model documents that an authenticated dashboard caller can run arbitrary code at compile time and read or write files in the config and data directories, so confidentiality, integrity, and availability are all High, with no credentials, no user interaction, and low attack complexity.

The base score is rated for the worst case, an internet reachable dashboard. That worst case is the right anchor here, because this issue only affects operators who had deliberately configured a dashboard password, and setting a password is the control an operator uses precisely when the dashboard is reachable by parties they do not fully trust, including a deployment exposed to the internet or a network segment shared with untrusted devices. For the affected population a trusted network cannot be assumed, so authentication should be restored as urgent.

Operational risk is lower for the subset of affected installations that run on a single trusted home or business network behind a firewall, since reaching the dashboard there requires an attacker who is already inside that network. ESPHome is designed for deployment on trusted networks with the network perimeter as the primary defense, so that deployment context reduces real world exposure; it does not lower the base severity, and operators on shared, guest, or internet reachable networks remain at full risk.

Patches

Fixed in 1.0.12. The bare $USERNAME / $PASSWORD are accepted again as a deprecated fallback so previously protected instances stay protected across the upgrade without operator intervention, with a loud deprecation warning at startup directing operators to rename them to $ESPHOME_USERNAME / $ESPHOME_PASSWORD. The fallback is gated on $PASSWORD being set and is only adopted as a pair, so the OS provided $USERNAME is never read on its own and the original collision footgun stays closed. A lone bare $PASSWORD with no username still fails loud as a credential mismatch rather than starting unauthenticated.

This restores compatibility rather than failing closed on the legacy names, because the priority is that an instance which was protected before the upgrade stays protected without the operator having to act; the deprecation warning plus a future removal handles the migration. Operators should migrate to the $ESPHOME_* names.

The esphome container delivers the fix in the 2026.6.2 release, which bumps its pinned esphome-device-builder version to 1.0.12.

Workarounds

Without upgrading, restore authentication immediately by setting the new env vars to the same values, on any affected version:

ESPHOME_USERNAME=<your-username>
ESPHOME_PASSWORD=<your-password>

Alternatively, do not expose the dashboard port to untrusted networks, and check the startup logs for the WITHOUT AUTHENTICATION banner to confirm whether a given instance is currently open.

References

  • Original report against the esphome container: GHSA-446m-c8jp-v37m
  • Env var rename that introduced the regression: esphome/device-builder#265
  • 2026.6.0 changelog (breaking change was not documented): https://esphome.io/changelog/2026.6.0
  • Old setup documentation that used the bare names: https://esphome.io/guides/getting_started_command_line

Technical POC Analysis

CWE-306: Missing Authentication for Critical Function.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Latest POC

1 PoC candidate from github (unverified)

Sign in to open the public PoC links collected for this CVE.

Executive ViewAI

Why It Matters

ESPHome Device Builder versions prior to 1.0.12 silently disable dashboard authentication when operators upgrade from legacy configurations, leaving IoT device management interfaces completely exposed to unauthenticated remote code execution. Any attacker with network access can compile malicious firmware, exfiltrate device configurations, and compromise all connected IoT systems managed through the dashboard. Organizations relying on ESPHome for building automation face immediate loss of device control and supply-chain integrity without warning during routine updates.

Business Impact: Severe
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.4%
Top 65% exploitable
Prevalence
Medium
popular open-source ESP device firmware tool, but vulnerable config subset is narrow
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC Yes
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity + public POC available
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
Very High
Technical Impact
Total

Priority Score

69
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +49
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

More in Docker

View all
CVE-2024-55964 CRITICAL POC
9.8 Mar 26

An issue was discovered in Appsmith before 1.52. Rated critical severity (CVSS 9.8), this vulnerability is remotely expl

CVE-2019-5736 HIGH POC
8.6 Feb 11

runc through version 1.0-rc6 (used in Docker before 18.09.2) contains a container escape vulnerability that allows attac

CVE-2023-32077 HIGH POC
7.5 Aug 24

Netmaker makes networks with WireGuard. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no a

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2023-5815 HIGH POC
8.1 Nov 22

The News & Blog Designer Pack - WordPress Blog Plugin - (Blog Post Grid, Blog Post Slider, Blog Post Carousel, Blog Post

CVE-2026-66384 MEDIUM POC
5.3 Aug 12

Path traversal in JFrog Artifactory (CWE-22) enables an authenticated low-privilege user to write data outside the inten

CVE-2014-9357 CRITICAL
10.0 Dec 16

Docker 1.3.2 allows remote attackers to execute arbitrary code with root privileges via a crafted (1) image or (2) build

CVE-2026-52806 CRITICAL POC
9.9 Jun 23

Remote code execution in Gogs through 0.14.2 allows authenticated users (and unauthenticated attackers on default-config

CVE-2025-14707 HIGH POC
8.9 Dec 15

Unauthenticated remote command injection in SGWBOX N3 firmware 2.0.25 lets attackers execute arbitrary operating-system

CVE-2026-56274 HIGH POC
8.7 Jun 23

Remote code execution in Flowise before 3.1.2 allows any authenticated user (or API caller with chatflow view/update per

CVE-2026-34156 CRITICAL POC
9.9 Mar 30

Remote code execution in NocoBase Workflow Script Node (npm @nocobase/plugin-workflow-javascript) allows authenticated l

CVE-2019-15752 HIGH POC
7.8 Aug 28

Docker Desktop Community Edition before 2.1.0.1 allows local users to gain privileges by placing a Trojan horse docker-c

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy