homeassistant is vulnerable to Path Traversal
93
Critical Risk
The backup component builds the on-disk destination path from the name field inside an uploaded archive's backup.json without validating it. Supplying an absolute path makes Python's pathlib path join discard the configured backup directory prefix, so the file is written to an attacker-chosen absolute location. During the initial onboarding window this upload endpoint is reachable without authentication, and when the process runs as root the write can target sensitive files anywhere on the host, enabling remote code execution. The fix rejects unsafe inner backup.json names and adds a containment check that prevents writes outside the backup directory.
You are affected if you are using a version that falls within the vulnerable range and your instance is still within the initial onboarding window where the backup upload endpoint is reachable without authentication.
homeassistant is vulnerable to Path Traversal in versions 2025.2.0 - 2026.5.4.
Upgrade the homeassistant library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant