CVE-2026-40602 | home-assistant-ecosystem home-assistant-cli up to 0.x code injection (GHSA-33qf-q99x-wpm8)
VulDBArchived Apr 21, 2026✓ Full text saved
A vulnerability was found in home-assistant-ecosystem home-assistant-cli up to 0.x . It has been declared as critical . Affected by this issue is some unknown functionality. Executing a manipulation can lead to code injection. This vulnerability is handled as CVE-2026-40602 . The attack can be executed remotely. There is not any exploit available. It is recommended to upgrade the affected component.
Full text archived locally
✦ AI Summary· Claude Sonnet
VDB-358547 · CVE-2026-40602 · GHSA-33QF-Q99X-WPM8
HOME-ASSISTANT-ECOSYSTEM HOME-ASSISTANT-CLI UP TO 0.X CODE INJECTION
HISTORYDIFFRELATEJSONXMLCTI
CVSS Meta Temp Score Current Exploit Price (≈) CTI Interest Score
5.0 $0-$5k 1.45+
Summaryinfo
A vulnerability was found in home-assistant-ecosystem home-assistant-cli up to 0.x. It has been rated as critical. This affects an unknown part. The manipulation leads to code injection. This vulnerability is uniquely identified as CVE-2026-40602. The attack is possible to be carried out remotely. No exploit exists. Upgrading the affected component is advised.
Detailsinfo
A vulnerability was found in home-assistant-ecosystem home-assistant-cli up to 0.x and classified as critical. This issue affects an unknown function. The manipulation with an unknown input leads to a code injection vulnerability. Using CWE to declare the problem leads to CWE-94. The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. Impacted is confidentiality, integrity, and availability. The summary by CVE is:
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.
It is possible to read the advisory at github.com. The identification of this vulnerability is CVE-2026-40602 since 04/14/2026. The exploitation is known to be easy. The attack may be initiated remotely. Additional levels of successful authentication are required for exploitation. The technical details are unknown and an exploit is not publicly available. The attack technique deployed by this issue is T1059 according to MITRE ATT&CK.
Upgrading to version 1.0.0 eliminates this vulnerability. Applying a patch is able to eliminate this problem. The bugfix is ready for download at github.com. The best possible mitigation is suggested to be upgrading to the latest version.
Productinfo
Vendor
home-assistant-ecosystem
Name
home-assistant-cli
Version
0.x
Website
Product: https://github.com/home-assistant-ecosystem/home-assistant-cli/
CPE 2.3info
🔒
CPE 2.2info
🔒
CVSSv4info
VulDB Vector: 🔒
VulDB Reliability: 🔍
CVSSv3info
VulDB Meta Base Score: 5.1
VulDB Meta Temp Score: 5.0
VulDB Base Score: 4.7
VulDB Temp Score: 4.5
VulDB Vector: 🔒
VulDB Reliability: 🔍
CNA Base Score: 5.6
CNA Vector (GitHub_M): 🔒
CVSSv2info
Vector Complexity Authentication Confidentiality Integrity Availability
Unlock Unlock Unlock Unlock Unlock Unlock
Unlock Unlock Unlock Unlock Unlock Unlock
Unlock Unlock Unlock Unlock Unlock Unlock
VulDB Base Score: 🔒
VulDB Temp Score: 🔒
VulDB Reliability: 🔍
Exploitinginfo
Class: Code injection
CWE: CWE-94 / CWE-74 / CWE-707
CAPEC: 🔒
ATT&CK: 🔒
Physical: Partially
Local: Yes
Remote: Yes
Availability: 🔒
Status: Not defined
Price Prediction: 🔍
Current Price Estimation: 🔒
0-Day Unlock Unlock Unlock Unlock
Today Unlock Unlock Unlock Unlock
Threat Intelligenceinfo
Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍
Countermeasuresinfo
Recommended: Upgrade
Status: 🔍
0-Day Time: 🔒
Upgrade: home-assistant-cli 1.0.0
Patch: github.com
Timelineinfo
04/14/2026 CVE reserved
04/21/2026 +7 days Advisory disclosed
04/21/2026 +0 days VulDB entry created
04/21/2026 +0 days VulDB entry last update
Sourcesinfo
Product: github.com
Advisory: GHSA-33qf-q99x-wpm8
Status: Confirmed
CVE: CVE-2026-40602 (🔒)
GCVE (CVE): GCVE-0-2026-40602
GCVE (VulDB): GCVE-100-358547
Entryinfo
Created: 04/21/2026 20:53
Changes: 04/21/2026 20:53 (65)
Complete: 🔍
Cache ID: 99:58A:101
Discussion
No comments yet. Languages: en.
Please log in to comment.
◂ PreviousOverviewNext ▸