CVE-2026-47092: Claude HUD Vulnerability Allows Local Code Execution
The National Vulnerability Database has reported CVE-2026-47092, a critical command injection vulnerability in Claude HUD through version 0.0.12. This flaw, patched in commit 234d9aa, allows a local attacker to achieve arbitrary code execution on Windows systems by manipulating the COMSPEC environment variable.
Attackers can set COMSPEC to point to an arbitrary binary path. When claude-hud performs its version check, the execFile() function then executes the attacker-supplied executable, passing cmd.exe arguments. This bypass leads directly to arbitrary code execution, earning a CVSS score of 7.8 (HIGH).
This vulnerability highlights a common pitfall in application development: relying on environment variables for critical execution paths without proper sanitization or validation. For defenders, this means any local attacker with minimal privileges could leverage this to escalate their access or persist on a compromised machine, turning a low-privilege foothold into full system control.
What This Means For You
- If your organization uses Claude HUD, you need to ensure all installations are updated to a version beyond 0.0.12 or include commit 234d9aa. This is a local privilege escalation vector that an attacker could chain with other vulnerabilities to gain significant control over Windows systems. Don't underestimate local vulnerabilities; they are often the second step in a multi-stage attack.
Related ATT&CK Techniques
🛡️ Detection Rules
3 rules · 6 SIEM formats3 detection rules auto-generated for this incident, mapped to MITRE ATT&CK. Sigma YAML is free — export to any SIEM format via the Intel Bot.
CVE-2026-47092: Claude HUD COMSPEC Manipulation for Local Code Execution
title: CVE-2026-47092: Claude HUD COMSPEC Manipulation for Local Code Execution
id: scw-2026-05-18-ai-1
status: experimental
level: high
description: |
Detects the exploitation of CVE-2026-47092 by identifying the claude-hud.exe process being executed with cmd.exe arguments, which is indicative of command injection via manipulation of the COMSPEC environment variable. This rule specifically targets the mechanism described in the vulnerability where an attacker sets COMSPEC to an arbitrary binary path before claude-hud performs its version check, leading to arbitrary code execution.
author: SCW Feed Engine (AI-generated)
date: 2026-05-18
references:
- https://shimiscyberworld.com/posts/nvd-CVE-2026-47092/
tags:
- attack.persistence
- attack.t1574.002
logsource:
category: process_creation
detection:
selection:
Image|endswith:
- 'claude-hud.exe'
CommandLine|contains:
- 'cmd.exe /c'
ParentImage|contains:
- 'cmd.exe'
selection_env_var:
TargetObject|contains:
- 'COMSPEC'
EventType: 'registry_set'
condition: selection AND selection_env_var
falsepositives:
- Legitimate administrative activity
Source: Shimi's Cyber World · License & reuse
Indicators of Compromise
| ID | Type | Indicator |
|---|---|---|
| CVE-2026-47092 | Command Injection | Claude HUD through 0.0.12 |
| CVE-2026-47092 | RCE | manipulating the COMSPEC environment variable |
| CVE-2026-47092 | RCE | execFile() executing attacker-supplied executable with cmd.exe arguments |
Source & Attribution
| Source Platform | NVD |
| Channel | National Vulnerability Database |
| Published | May 18, 2026 at 23:16 UTC |
This content was AI-rewritten and enriched by Shimi's Cyber World based on the original source. All intellectual property rights remain with the original author.
Believe this infringes your rights? Submit a takedown request.