Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain local foothold on Windows host
-
DeliveryStage malicious executable on writable path
-
ExploitSet COMSPEC to malicious binary in target environment
-
ExecutionTrigger claude-hud version check
-
PersistexecFile() launches attacker binary with cmd.exe args
-
ImpactArbitrary code execution as invoking user
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V13 - Configuration Search path element control
|
| Exploitation Conditions | Exploitation requires (1) the target host to be Windows, since COMSPEC is the Windows cmd.exe locator; (2) a local attacker with the ability to control the COMSPEC environment variable in the process environment that launches claude-hud (matching CVSS PR:L and AT:P - a present attack requirement); (3) claude-hud version ≤ 0.0.12 invoking its version-check code path that calls execFile() against COMSPEC; and (4) a writable filesystem location where the attacker can stage the substitute executable that COMSPEC will point to. Limiting factors: no network reachability (AV:L), no user interaction is needed once the environment is poisoned (UI:N), scope is unchanged (SC:N) so impact is confined to the user context running claude-hud, and non-Windows installations are unaffected. |
| Impact | The CVSS 4.0 vector AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H yields 7.3 and accurately reflects a local, low-complexity attack requiring some pre-existing privileges (PR:L) and a specific attack precondition (AT:P) - namely the ability to mutate the COMSPEC variable in the process environment that launches claude-hud. There is no EPSS score, KEV listing, or known public PoC supplied, so this is not a mass-exploitation candidate; realistic abuse is as a local privilege-escalation or persistence primitive on Windows endpoints where claude-hud is invoked by a higher-privileged context or as a developer-tool sandbox-escape. Confidence signals are mixed: vendor patch and a VulnCheck advisory are confirmed, but exploitation telemetry is absent, so prioritize this for developer workstations running claude-hud rather than as a fleet-wide emergency. |
| Exploit ScenarioDerived | A local attacker with the ability to set environment variables for a target user's shell (for example, via a malicious .env file, a poisoned launcher script, or a foothold on a developer workstation) places a malicious executable on disk and sets COMSPEC to point to it. When the user or an automated workflow runs claude-hud, the version-check path calls execFile() against COMSPEC, executing the attacker's binary with cmd.exe arguments - yielding code execution in the invoking user's security context. No public exploit is identified at time of analysis, but the patch diff makes the call site obvious. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 18, 2026
Local privilege code execution in jarrodwatts/claude-hud through version 0.0.12 on Windows allows authenticated local users to run arbitrary executables by setting the COMSPEC environment variable before the tool's version check, where execFile() launches whatever binary COMSPEC points to with cmd.exe-style arguments. The flaw is tracked as CWE-427 (Uncontrolled Search Path Element) and was reported by VulnCheck; no public exploit identified at time of analysis, but the upstream commit 234d9aa makes the fix mechanics straightforward to reverse-engineer.
RemediationAI
Upgrade claude-hud to the release containing upstream fix commit 234d9aad919b51326a43bcf90b45ae35c23afc30 (merged via PR #487); the project notes versions after 0.0.12 are patched, and an exact released tag should be confirmed against the repository releases page before rollout. If immediate upgrade is not possible, compensating controls on Windows are to unset or hardcode COMSPEC to %SystemRoot%\System32\cmd.exe in any shell or service that launches claude-hud, restrict who can modify environment variables for that process (avoid running claude-hud from contexts where lower-privileged users can influence the environment block), and avoid invoking claude-hud from elevated or service accounts until patched - the trade-off is that altering COMSPEC globally can break legitimate scripts that expect a customized command processor.
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
claude-hud is a Node.js-based status/HUD utility (cpe:2.3:a:jarrodwatts:claude-hud) that shells out to cmd.exe on Windows to perform a version check. It uses Node's child_process.execFile() but resolves the interpreter via the COMSPEC environment variable rather than a hardened absolute path, which maps directly to CWE-427: the program trusts an externally controllable search/path element to locate a critical binary. Because execFile() does not invoke a shell, the issue is not classic shell metacharacter injection but rather a binary-substitution flaw - whatever path COMSPEC names is executed verbatim, with cmd.exe's argument list appended.
Know when Claude Hud gets its next vulnerability
- 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:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Primary rating from Vendor (VulnCheck) · only source for this CVE.
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
1DescriptionCVE.org
Claude HUD through 0.0.12, patched in commit 234d9aa, contains a command injection vulnerability that allows local attackers to execute arbitrary commands by manipulating the COMSPEC environment variable. Attackers can set COMSPEC to an arbitrary binary path before claude-hud performs its version check, causing execFile() to execute the attacker-supplied executable with cmd.exe arguments, resulting in arbitrary code execution on Windows systems.
Articles & Coverage 1
Executive ViewAI
Claude-hud on Windows allows local users with system access to escalate their privileges and execute arbitrary code through an environment variable handling flaw. This creates critical risk pathways for compromised accounts and insider threats to gain elevated system access. Organizations should immediately identify affected systems and apply available patches to prevent data theft, system compromise, and potential lateral movement.
Apply vendor patch. If patching is delayed: restrict local user account privileges on affected systems, implement application whitelisting to prevent arbitrary binary execution, and establish monitoring for COMSPEC environment variable modifications.
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.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
More in Claude Hud
View allPath traversal in Claude HUD through version 0.0.12 permits local low-privileged attackers to read arbitrary files by su
Terminal injection in Claude HUD through version 0.0.12 allows an attacker who controls a Git branch name or working dir
EUVD-2026-30802
GHSA-p5qq-v9mc-39ff
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB