Cloud Cli
CVE-2026-31862
CRITICAL
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as high-privilege user
-
DeliveryCraft malicious Git API request with command injection payload
-
ExploitInject OS commands via file/branch/message parameters
-
ExecutionExecute arbitrary commands via execAsync()
-
ImpactCompromise system with high privileges
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 | Authenticated user with high privileges (PR:H) accessing Cloud CLI versions prior to 1.24.0. Git-related API endpoints must be exposed and accept unsanitized user input in file, branch, message, or commit parameters passed to execAsync(). |
| Impact | CVSS 9.1. |
| Exploit ScenarioDerived | Inject commands via Git operations. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 12, 2026
Command injection in Cloud CLI (Claude Code UI) Git operations before 1.24.0.
Earlier versions of this analysis (1)
Git command injection in Cloud CLI.
RemediationAI
Update.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
CWE-78.
Know when Cloud Cli 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
AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
Primary rating from GitHub Advisory · only source for this CVE.
CVSS VectorGitHub Advisory
Lifecycle Timeline
2DescriptionGitHub Advisory
Cloud CLI (aka Claude Code UI) is a desktop and mobile UI for Claude Code, Cursor CLI, Codex, and Gemini-CLI. Prior to 1.24.0, multiple Git-related API endpoints use execAsync() with string interpolation of user-controlled parameters (file, branch, message, commit), allowing authenticated attackers to execute arbitrary OS commands. This vulnerability is fixed in 1.24.0.
Executive ViewAI
A critical vulnerability (CVSS 9.1) in Cloud CLI affects desktop and mobile users of Claude Code, Cursor CLI, Codex, and Gemini-CLI environments. This unpatched vulnerability poses an immediate risk to developer endpoints and could enable unauthorized access to code repositories, credentials, and sensitive development assets across your organization.
Disable Cloud CLI integration in development environments until patch availability; enforce network segmentation isolating developer workstations from production systems; implement endpoint detection and response (EDR) monitoring on all systems running affected CLI tools; restrict outbound network access from development machines to whitelisted repositories and services only; require code reviews and additional access controls for code repositories accessed via CLI; monitor for suspicious authentication patterns and unauthorized repository access.
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.
GHSA-f2fc-vc88-6w7q
NVD
CVE.org
EPSS
VulDB
Exploit-DB