Bug 2460231 (CVE-2026-40602) - CVE-2026-40602 home-assistant-cli: Jinja2: Home Assistant Command-line interface: Arbitrary code execution via unrestricted Jinja2 template rendering
Summary: CVE-2026-40602 home-assistant-cli: Jinja2: Home Assistant Command-line interf...
Keywords:
Status: NEW
Alias: CVE-2026-40602
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2460543 2460542
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-04-21 20:02 UTC by OSIDB Bzimport
Modified: 2026-04-23 10:32 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-04-21 20:02:13 UTC
The Home Assistant Command-line interface (hass-cli) is a command-line tool for Home Assistant. Up to 1.0.0 of home-assitant-cli an unrestricted environment was used to handle Jninja2 templates instead of a sandboxed one. The user-supplied input within Jinja2 templates was rendered locally with no restrictions. This gave users access to Python's internals and extended the scope of templating beyond the intended usage. This vulnerability is fixed in 1.0.0.


Note You need to log in before you can comment on or make changes to this bug.