Ad

CVE-2026-30304

CRITICAL CVSS 3.1: 9.6 EPSS 0.06%
Updated Apr 03, 2026
Tianguaduizhang
Parameter Value
CVSS 9.6 (CRITICAL)
Affected Versions before 3.12.4
Type CWE-20 (Improper Input Validation)
Vendor Tianguaduizhang
Public PoC No

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.

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
Low
Easy to exploit
Privileges Required
None
No privileges needed
User Interaction
Required
User action required

Impact Assessment

Confidentiality
High
Complete data leak
Integrity
High
Complete data modification
Availability
High
Complete denial of service

CVSS Vector v3.1

Vulnerable Products 1

Configuration From (including) Up to (excluding)
Tianguaduizhang Ai_Code
cpe:2.3:a:tianguaduizhang:ai_code:*:*:*:*:*:visual_studio_code:*:*
<= 3.12.4