VDB
KO
CRITICAL 9.3

GHSA-5hxg-r395-fqxx

Home Assistant Core vulnerable to Path Traversal via backup upload during onboarding

Quick fix

GHSA-5hxg-r395-fqxx — homeassistant: upgrade to the fixed version with the command below.

pip install --upgrade 'homeassistant>=2026.6.0'

Details

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI / homeassistant
Introduced in: 0 Fixed in: 2026.6.0
Fix pip install --upgrade 'homeassistant>=2026.6.0'

References