Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft prompt injection template
-
DeliveryWrap malicious command in misleading context
-
ExploitModel misclassifies as safe command
-
ExecutionAutomatic execution bypasses user approval
-
ImpactArbitrary code execution with user privileges
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation, allowlisting
|
| Exploitation Conditions | Requires AI Code with 'Execute safe commands' automatic execution mode enabled. Attacker crafts a prompt-injected command wrapped in a generic template and sends it to a user. The user must interact with the AI Code interface (e.g., paste/submit the malicious prompt), triggering automatic execution of the attacker's command. |
| Impact | Assessment is constrained by incomplete data: no CVSS score, vector, or EPSS probability is available, and no KEV (CISA Known Exploited Vulnerabilities) designation is indicated. However, risk signals are significant. The attack vector is remote (triggerable via crafted input to the extension), attack complexity is low (template-based prompt injection is straightforward), and no authentication is required beyond having the extension installed. The technical impact is severe: arbitrary command execution with the privileges of the user running the IDE. The vulnerability is not confirmed actively exploited according to available intelligence, but proof-of-concept demonstrations exist in the referenced GitHub issue (Secsys-FDU research). The automatable nature of prompt injection and the high user base of Visual Studio Code extensions suggest real-world exploitation risk is moderate to high, particularly for users who enable automatic command execution. The lack of a published CVSS vector limits definitive prioritization, but the combination of unauthenticated access, low complexity, and RCE impact places this in a high-priority category for organizations using AI Code. |
| Exploit ScenarioDerived | An attacker crafts a malicious terminal command (e.g., exfiltrating environment variables, installing a backdoor, or modifying system files) and wraps it in a generic prompt injection template designed to mislead the model into classifying it as a safe operation. When a developer using AI Code feeds this crafted prompt to the extension, the model's safety classifier misinterprets the template and labels the command as safe, triggering automatic execution without prompting the user for approval. The command executes with the privileges of the developer's user account, compromising the development environment and potentially the systems the developer accesses (source repositories, cloud credentials, deployment pipelines). While no public proof-of-concept exploit code is documented in the main CVE references, the research publication from Secsys-FDU demonstrates the attack methodology is feasible and reproducible. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 27, 2026
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.
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.
Affected VersionsENISA
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
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.
Know when N A 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:N/UI:R/S:C/C:H/I:H/A:H
Primary rating from Vendor (mitre) · only source for this CVE.
CVSS VectorVendor: mitre
DescriptionCVE.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.
Executive ViewAI
CVE-2026-30304 presents critical security risk, a input validation vulnerability rated CVSS 9.6. Successful exploitation could critically impact the confidentiality, integrity, and availability of affected systems. Organizations should apply vendor updates immediately when available and implement compensating controls in the interim.
Apply vendor patch. If immediate patching is not feasible: (1) Implement network-level access controls to limit exposure; (2) Enable enhanced monitoring and alerting; (3) Apply principle of least privilege.
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
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
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
EUVD-2026-16602
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB