Skip to main content

N A CVE-2026-30304

| EUVDEUVD-2026-16602 CRITICAL
Improper Input Validation (CWE-20)
2026-03-27 mitre
9.6
CVSS 3.1 · Vendor: mitre
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft prompt injection template
  2. Delivery
    Wrap malicious command in misleading context
  3. Exploit
    Model misclassifies as safe command
  4. Execution
    Automatic execution bypasses user approval
  5. Impact
    Arbitrary 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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
No patch listed yet 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

n/a n/a

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

Vendor (mitre) PRIMARY 9.6 CRITICAL
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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

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

Why It Matters

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.

Business Impact: Severe
Compensating Controls

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

EPSS Score
0.1%
Top 81% exploitable
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

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.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.1%
Patch available No
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
Very High
Technical Impact
Total

Priority Score

48
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +48
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

More in N A

View all
CVE-2024-51092 CRITICAL POC
9.1 May 08

LibreNMS before 24.10.0 allows a remote attacker to execute arbitrary code via OS command injection involving AboutContr

CVE-2025-15684 MEDIUM POC
5.5 Aug 12

Reachable assertion in Open5GS up to version 2.7.6 allows remote unauthenticated attackers to crash the Diameter CER han

CVE-2024-45257 HIGH POC
7.3 May 08

A Command Injection issue in the payload build page in BYOB (Build Your Own Botnet) 2.0 allows attackers to execute arbi

CVE-2025-15687 LOW POC
2.1 Aug 12

Denial of service in Open5GS 2.7.6 and earlier allows network-adjacent attackers with low-privilege Diameter Gx peer acc

CVE-2025-15686 LOW POC
2.1 Aug 12

Denial of service in Open5GS HSS (Home Subscriber Server) versions 2.7.0 through 2.7.6 is triggered remotely by manipula

CVE-2025-67888 HIGH POC
7.3 May 08

Remote command injection in Control Web Panel allows unauthenticated attackers to execute arbitrary OS commands as root

CVE-2024-53326 HIGH POC
7.3 May 08

LINQPad before 5.52.01 Pro edition is vulnerable to Unsafe Deserialization in LINQPad.AutoRefManager::PopulateFromCache(

CVE-2026-38360 CRITICAL POC
9.8 May 08

Remote code execution in dash-uploader (Python package for Plotly Dash) versions 0.1.0 through 0.7.0a2 allows unauthenti

CVE-2026-30623 CRITICAL POC
9.8 Jul 15

Command injection in LiteLLM 1.18.10 lets attackers who can configure MCP (Model Context Protocol) servers supply arbitr

CVE-2026-67917 CRITICAL POC
9.8 Aug 17

SQL injection in AzuraCast's backup restore flow (versions up to and including 0.23.7) lets an attacker achieve privileg

CVE-2026-75337 CRITICAL POC
9.8 Aug 27

Arbitrary file read in Yu AI Code Mother v4.3 lets anonymous, remote attackers retrieve files outside the intended previ

CVE-2026-31072 CRITICAL POC
9.8 May 19

Remote code execution in APScheduler (all versions through 3.10.x and 4.0.0a5) is achievable when applications deseriali

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy