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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
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
Lifecycle Timeline
3DescriptionCVE.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.
AnalysisAI
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.
Technical ContextAI
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.
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).
More in Home Assistant
View allhomeassistant is an open source home automation tool. Rated critical severity (CVSS 10.0), this vulnerability is remotel
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
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
Home assistant is an open source home automation. Rated high severity (CVSS 7.8), this vulnerability is no authenticatio
Unauthenticated LAN-adjacent information disclosure in Home Assistant Core's Konnected integration exposes live alarm-pa
Same weakness CWE-22 – Path Traversal
View allSame technique Path Traversal
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-46301
GHSA-5hxg-r395-fqxx