CVE-2026-30304

Published Mar 27, 2026 CVSS 3.1 · 9.6 Critical EPSS < 1% KEV · Not listed
Description
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Title AI Code Extension Vulnerable to Prompt Injection Leading to Arbitrary Command Execution
Type Values Removed Values Added
CPEs cpe:2.3:a:tianguaduizhang:ai_code:*:*:*:*:*:*:*:* cpe:2.3:a:tianguaduizhang:ai_code:*:*:*:*:*:visual_studio_code:*:*
Type Values Removed Values Added
Title AI Code Extension Vulnerable to Prompt Injection Leading to Arbitrary Command Execution
Type Values Removed Values Added
CPEs cpe:2.3:a:tianguaduizhang:ai_code:*:*:*:*:*:*:*:*
Type Values Removed Values Added
First Time appeared Tianguaduizhang
Tianguaduizhang ai Code
Vendors & Products Tianguaduizhang
Tianguaduizhang ai Code
Type Values Removed Values Added
Title AI Code Prompt Injection Leading to Arbitrary Command Execution
Weaknesses CWE-78
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Title AI Code Prompt Injection Leading to Arbitrary Command Execution
Weaknesses CWE-20
CWE-78
Metrics cvssV3_1

{'score': 9.6, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H'}

Type Values Removed Values Added
Description 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.
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Mar 27, 2026, 7:48 PM
Reserved
Mar 4, 2026, 12:00 AM
Status
Analyzed
Published
Mar 27, 2026, 3:16 PM
Modified
Nov 11, 2026, 7:10 PM