Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconAuthenticate to Home Assistant
-
DeliveryAccess Blueprint Studio Git credential API
-
ExploitSubmit username/token containing embedded newline and shell payload
-
InstallTrigger Git operation in Blueprint Studio
-
C2Git executes poisoned credential helper script
-
ExecuteInjected commands run as Home Assistant OS user
-
ImpactRead or modify HA configuration data
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK
2 techniques across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The attacker must hold an authenticated Home Assistant session with access to Blueprint Studio's Git credential configuration API. Prior to v2.5.2 this API was reachable by any authenticated HA user, not exclusively admin accounts; the fix explicitly added admin-only enforcement. The attacker must supply a Git username or token value containing at least one newline character (\n), carriage return (\r), or null byte (\x00) followed by valid shell syntax. Exploitation is completed when a Git operation is subsequently initiated through Blueprint Studio, causing the generated credential helper to execute - the attacker can trigger this themselves without waiting for another user's interaction. Limiting factors: unauthenticated network access is insufficient (a valid HA account is required); the vulnerable code path is only reached when Blueprint Studio's Git functionality is actively configured and used; and the injection site is the credential helper script rather than a direct API response, so a Git operation must be triggered after credential injection. |
| Impact | The supplied CVSS 4.0 score of 8.6 with vector AV:N/AC:L/AT:N/PR:H/UI:N reflects high real-world impact when exploited, with full confidentiality, integrity, and availability compromise of the vulnerable system. However, the PR:H (high privileges required) metric warrants scrutiny against the commit diff evidence: prior to v2.5.2 the Blueprint Studio backend API was not restricted to admin users, meaning any authenticated Home Assistant user could invoke the credential-setting endpoint. The fix explicitly added admin-only enforcement to the entire API surface. This suggests the pre-patch effective privilege requirement was closer to PR:L, making the attack surface wider than PR:H implies. No EPSS data, CISA KEV listing, or public proof-of-concept was provided; exploitation is therefore assessed as not actively occurring at time of analysis. The attack requires an existing authenticated Home Assistant account, which limits the realistic threat to internal network actors or compromised accounts - unauthenticated external exploitation is not possible. Despite the network attack vector, this is not a zero-click internet-exposed flaw; it requires a logged-in HA session and the ability to initiate a Git credential configuration action. |
| Exploit ScenarioDerived | An authenticated Home Assistant user with access to Blueprint Studio's Git settings submits a repository configuration with a username value of user\necho PWNED > /config/pwned.txt (where \n is a literal newline). Blueprint Studio writes this unsanitized value into a generated shell credential helper script; when the user subsequently triggers a Git operation (such as a repository clone or pull), Git executes the helper, and the injected echo command runs with Home Assistant OS privileges, creating or overwriting files in the HA config directory. More sophisticated payloads could exfiltrate secrets.yaml or install a persistent backdoor. No public proof-of-concept exploit has been identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 18, 2026
OS command injection in Blueprint Studio before 2.5.2 allows authenticated Home Assistant users to execute arbitrary shell commands with Home Assistant's OS-level privileges by embedding newline characters or shell metacharacters into configured Git credential values. The vulnerable code in git_manager.py interpolated raw username and token values directly into generated shell credential helper scripts without any sanitization or validation. The fix, released in version 2.5.2 on 2026-05-26, adds input validation rejecting credentials containing newlines or null bytes and simultaneously restricts the entire Blueprint Studio backend API to admin-only users - no public exploit has been identified at time of analysis.
RemediationAI
Upgrade Blueprint Studio to version 2.5.2 or later, available at https://github.com/ha-china/blueprint-studio/releases/tag/v2.5.2 and via HACS. Version 2.5.2 resolves this issue through two independent mechanisms: it validates all Git credential values against a strict regex rejecting newlines, carriage returns, and null bytes before they are written into helper scripts, and it restricts all Blueprint Studio backend, stream, and upload API endpoints to Home Assistant admin users only, eliminating access from non-admin authenticated users. If immediate upgrade is not feasible, restrict Home Assistant user accounts so that only vetted administrator accounts exist - removing or demoting non-admin user accounts blocks the primary attack path at the cost of reduced multi-user flexibility. Disabling the Blueprint Studio integration entirely via Home Assistant's integrations panel is the most effective compensating control, eliminating the attack surface completely but removing all file editor functionality.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Blueprint Studio is a Home Assistant custom component (HACS integration) providing a VS Code-like file editor for Home Assistant configuration files, maintained at github.com/ha-china/blueprint-studio. The root cause is CWE-78 (Improper Neutralization of Special Elements used in an OS Command). Specifically, the module custom_components/blueprint_studio/backend/git_manager.py dynamically generated shell-based Git credential helper scripts by string-interpolating configured Git username and token values directly into executable shell script content. Because shell scripts interpret newline characters as command delimiters, an attacker who could supply a credential value containing a newline followed by arbitrary shell syntax would cause Git - when executing the generated helper - to run the injected commands. The injected commands inherited the OS privileges of the Home Assistant process. The fix introduced a _CREDENTIAL_SAFE compiled regex pattern and a _validate_git_credential() function that rejects any credential string containing carriage returns, newlines, or null bytes before the value is written into the helper script.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
PR:L because the pre-fix API was accessible to any authenticated HA user, not admin-only; S:U because command execution remains within the HA OS context.
Primary rating from Vendor (github).
CVSS VectorVendor: github
Lifecycle Timeline
2DescriptionCVE.org
Blueprint Studio is a VS Code-like file editor for Home Assistant configuration files. Prior to 2.5.2, Blueprint Studio generated a shell-based Git credential helper in custom_components/blueprint_studio/backend/git_manager.py by interpolating the configured Git username and token directly into executable helper script content without validating credential values. An attacker able to set Git credentials could include newline characters or shell syntax in a username or token. When Git executed the generated credential helper, the injected shell commands ran with the operating-system privileges of Home Assistant and could access or modify Home Assistant configuration data. This issue is fixed in version 2.5.2.
Executive ViewAI
Blueprint Studio versions prior to 2.5.2 contain an OS command injection vulnerability allowing authenticated users to execute arbitrary system commands with administrative privileges, potentially compromising the security of Home Assistant deployments. Organizations using Blueprint Studio must prioritize immediate patching to prevent unauthorized system access.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
OS command injection occurs when an application passes unsanitized user input directly into system shell commands.
EUVD-2026-61486
NVD
CVE.org
EPSS
GitHub
Exploit-DB