← AI agent vulnerabilities

CVE-2026-31861

Cloud CLI (aka Claude Code UI)

8.8
Severity
High
Published
March 11, 2026
Last modified
June 17, 2026

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, The /api/user/git-config endpoint constructs shell commands by interpolating user-supplied gitName and gitEmail values into command strings passed to child_process.exec(). The input is placed within double quotes and only " is escaped, but backticks (`), $() command substitution, and \ sequences are all interpreted within double-quoted strings in bash. This allows authenticated attackers to execute arbitrary OS commands via the git configuration endpoint. This vulnerability is fixed in 1.24.0.

CVSS vector CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Weakness

References

CVE-2026-31861 on NVD

Listed in

HighMCP serversCode injection

More Cloud CLI (aka Claude Code UI) CVEs

Mar 11
CVE-2026-319759.8

OS Command Injection via WebSocket Shell.

Mar 11
CVE-2026-318629.1

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.