Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach un-onboarded instance during setup
-
DeliveryUpload crafted backup archive
-
ExploitSet absolute path in backup.json 'name'
-
Executionpathlib discards backup dir prefix
-
PersistWrite attacker file to arbitrary host path
-
ImpactExecute code as root
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that the target Home Assistant Core instance be reachable during the initial onboarding window - the setup phase before an owner account is created - which is the concrete attack requirement encoded as AT:P in the CVSS vector. The attacker must upload a backup archive and set an absolute path in the 'name' field of its backup.json to trigger the pathlib prefix-discard behavior. Full host compromise specifically requires the process to be running as root (as in the Home Assistant OS/supervised deployment); a non-root Core/container install limits writes to the service user's reachable files. Limiting factors: an already-onboarded, in-production instance is not exploitable via this path, and the instance must be network-reachable by the attacker during that setup window. |
| Impact | This is a genuine high priority for exposed or freshly-provisioned instances. The CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:N/UI:N, base 9.0) shows a network-reachable, unauthenticated, no-user-interaction write with high integrity impact to both the vulnerable system (VI:H) and subsequent host system (SI:H), tempered by AT:P - an attack requirement, namely that exploitation is only possible during the unauthenticated onboarding window before an owner account is created. That AT:P condition is the single biggest real-world limiter: an established, already-onboarded instance is not exploitable via this path, so mass, opportunistic exploitation of long-running deployments is unlikely. No EPSS score was provided in the input, so exploitation probability cannot be quantified here. It is not in CISA KEV and no POC is referenced, so exploitation status is 'no public exploit identified at time of analysis.' The severity ceiling is high (root-level arbitrary write), but the practical exposure is bounded to instances that are internet-reachable during onboarding. |
| Exploit ScenarioDerived | An attacker who can reach a Home Assistant Core instance that is still in its initial onboarding state (no owner account yet) uploads a crafted backup archive whose backup.json 'name' field contains an absolute path. The server joins that value onto the backup directory, pathlib discards the prefix, and the attacker's file lands at an arbitrary location - for example dropping a malicious automation, a cron/systemd unit, or overwriting a config file - yielding code execution as root when the process is privileged. No public POC is referenced, but the mechanism is straightforward given the described backup.json manipulation. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 21, 2026
Arbitrary file write in Home Assistant Core before 2026.6.0 lets unauthenticated attackers plant attacker-controlled files anywhere on the host by uploading a malicious backup archive during the initial onboarding window. Because the process frequently runs as root (e.g., in the supervised/OS install), this path traversal escalates to full host compromise. No public exploit is identified at time of analysis, and it is not listed in CISA KEV, but a vendor-released patch (2026.6.0) exists and the issue was reported by VulnCheck.
RemediationAI
Vendor-released patch: upgrade to Home Assistant Core 2026.6.0 or later (release notes: https://github.com/home-assistant/core/releases/tag/2026.6.0; fix commit 567fe858289876b68b8162a77bd46e1e1af79752). Because exploitation is confined to the pre-account onboarding window, the most effective compensating control for unpatched systems is to never expose a fresh, un-onboarded instance to untrusted networks: complete onboarding and create the owner account on a trusted local network segment before any port-forwarding or reverse-proxy exposure, and restrict access to the onboarding/backup-upload endpoints (place the instance behind a VPN or firewall so only trusted hosts can reach it during setup). As a hardening measure, run Home Assistant as a non-root user where the deployment model allows, which limits an arbitrary write to files the service user can reach rather than the entire host (trade-off: the Home Assistant OS/supervised installs expect elevated privileges, so this is only practical for Core/container installs).
Affected VersionsENISA
Affected Packages
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
Home Assistant Core is a Python-based open-source home automation platform. The flaw is a classic CWE-22 path traversal in the backup restore/upload path: the backup archive contains a backup.json whose 'name' field is used to construct the destination path via Python's pathlib. When an attacker supplies an absolute path in that field, pathlib.Path.__truediv__ (the '/' operator) discards the configured backup-directory prefix entirely - because joining a base path with an absolute path in pathlib returns the absolute path - so the intended sandbox directory is silently dropped and the file is written to the attacker-specified absolute location. The affected component per the NVD CPE is cpe:2.3:a:home-assistant:home_assistant_core, all versions prior to 2026.6.0.
Know when Home Assistant 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
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:L/SC:N/SI:H/SA:L
AC:H because exploitation is limited to the transient onboarding window; PR:N/UI:N as it is unauthenticated with no interaction; S:C and I:H for root-level arbitrary write escaping the app to the whole host, C:N as no read primitive.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
Home Assistant Core before 2026.6.0 contains a path traversal vulnerability that allows unauthenticated attackers to write arbitrary files to any directory on the host filesystem by uploading a crafted backup archive during the initial onboarding window. Attackers can manipulate the 'name' field inside the uploaded archive's backup.json to supply an absolute path, causing pathlib.Path.__truediv__ to discard the configured backup directory prefix and write attacker-controlled content to arbitrary locations, with full filesystem access when the process runs as root.
Blast Radius
ecosystem impact- 3 pypi packages depend on homeassistant (3 direct, 0 indirect)
Ecosystem-wide dependent count for version 2026.6.0.
Executive ViewAI
Home Assistant Core versions before 2026.6.0 contain a critical arbitrary file write vulnerability enabling unauthenticated attackers to achieve full host compromise through malicious backup archives during initial setup. Organizations running Home Assistant in supervised or OS installations-which typically execute as root-face immediate risk of complete system takeover without authentication or user interaction beyond standard onboarding.
Apply vendor patch.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
More in Home Assistant
View allhomeassistant is an open source home automation tool. Rated critical severity (CVSS 10.0), this vulnerability is remotel
Stored/DOM cross-site scripting in the Home Assistant frontend Statistics Graph card lets an authenticated user or a mal
Home Assistant Community Store (HACS) 1.10.0 contains a path traversal vulnerability that allows unauthenticated attacke
Home assistant is an open source home automation. Rated critical severity (CVSS 9.6), this vulnerability is remotely exp
Home assistant is an open source home automation. Rated critical severity (CVSS 9.6), this vulnerability is remotely exp
Path-traversal to remote code execution in Home Assistant Core before 2026.6.0 lets an authenticated user who can supply
Home Assistant before 2021.1.3 does not have a protection layer that can help to prevent directory-traversal attacks aga
Home assistant is an open source home automation. Rated critical severity (CVSS 9.0), this vulnerability is remotely exp
The Home Assistant Companion for iOS and macOS app up to version 2023.4 are vulnerable to Client-Side Request Forgery. R
Stored cross-site scripting in the Home Assistant Energy dashboard (versions 2025.1.0 through 2025.10.1) lets an authent
Cross-origin JavaScript injection in Home Assistant Companion apps for Android (before 2026.4.4) and iOS (before 2026.4.
Home Assistant is open source home automation software. Rated medium severity (CVSS 4.3), this vulnerability is no authe
EUVD-2026-46301
GHSA-5hxg-r395-fqxx
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB