Severity by source
AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
Lifecycle Timeline
3DescriptionCVE.org
In its design for automatic terminal command execution, AI Code offers two options: Execute safe commands and execute all commands. The description for the former states that commands determined by the model to be safe will be automatically executed, whereas if the model judges a command to be potentially destructive, it still requires user approval. However, this design is highly susceptible to prompt injection attacks. An attacker can employ a generic template to wrap any malicious command and mislead the model into misclassifying it as a 'safe' command, thereby bypassing the user approval requirement and resulting in arbitrary command execution.
AnalysisAI
Prompt injection attacks in AI Code's automatic command execution feature allow remote attackers to bypass the model-based safety classification system and achieve arbitrary command execution without user approval. The vulnerability affects AI Code extensions (notably the Claude Dev China variant available on the Visual Studio Code Marketplace) by exploiting the model's susceptibility to crafted prompts that misclassify destructive commands as safe. No public exploit code or confirmed active exploitation has been identified at the time of analysis, but the attack requires no authentication and can be triggered by any user with access to the extension's command execution interface.
Technical ContextAI
AI Code implements a two-tier command execution policy: safe commands are executed automatically based on model classification, while potentially destructive commands require explicit user approval. This design relies on a large language model's judgment to distinguish between command categories. The vulnerability class relates to prompt injection attacks (a form of input validation bypass) combined with insecure design reliance on model behavior for security-critical decisions. The affected technology is a Visual Studio Code extension that integrates with language models (specifically Claude-based models per the marketplace reference) to generate and execute terminal commands. The root cause is the assumption that an LLM can reliably and consistently classify command safety in the presence of adversarially crafted prompts, without secondary validation mechanisms or sandboxing. This is a systemic weakness in treating LLM outputs as a security boundary rather than as user-generated content that requires validation.
RemediationAI
Immediate remediation for users: disable the automatic command execution feature and switch to the "execute all commands" mode only with explicit user approval for each command, or uninstall the extension if automatic execution cannot be avoided. For organizations: restrict installation of AI Code and similar LLM-integrated code execution tools via organization policies within Visual Studio Code or Intune/endpoint management. Longer-term remediation requires vendor action: the extension maintainers should redesign the safety classification mechanism to avoid reliance on LLM judgment as a security control. Recommended improvements include sandboxing command execution, implementing command whitelisting, adding secondary validation steps that do not depend on model output, and conducting security review of the prompt templates used for command classification. Users should monitor the GitHub issue (Secsys-FDU/LLM-Tool-Calling-CVEs/issues/2) and the Visual Studio Marketplace extension page for security updates. No vendor-released patch is identified in available data at this time.
LibreNMS before 24.10.0 allows a remote attacker to execute arbitrary code via OS command injection involving AboutContr
Reachable assertion in Open5GS up to version 2.7.6 allows remote unauthenticated attackers to crash the Diameter CER han
A Command Injection issue in the payload build page in BYOB (Build Your Own Botnet) 2.0 allows attackers to execute arbi
Denial of service in Open5GS 2.7.6 and earlier allows network-adjacent attackers with low-privilege Diameter Gx peer acc
Denial of service in Open5GS HSS (Home Subscriber Server) versions 2.7.0 through 2.7.6 is triggered remotely by manipula
Remote command injection in Control Web Panel allows unauthenticated attackers to execute arbitrary OS commands as root
LINQPad before 5.52.01 Pro edition is vulnerable to Unsafe Deserialization in LINQPad.AutoRefManager::PopulateFromCache(
Remote code execution in dash-uploader (Python package for Plotly Dash) versions 0.1.0 through 0.7.0a2 allows unauthenti
Command injection in LiteLLM 1.18.10 lets attackers who can configure MCP (Model Context Protocol) servers supply arbitr
SQL injection in AzuraCast's backup restore flow (versions up to and including 0.23.7) lets an attacker achieve privileg
Arbitrary file read in Yu AI Code Mother v4.3 lets anonymous, remote attackers retrieve files outside the intended previ
Remote code execution in APScheduler (all versions through 3.10.x and 4.0.0a5) is achievable when applications deseriali
Same weakness CWE-20 – Improper Input Validation
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-16602