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.
Metrics
Affected Vendors & Products
References
History
Sat, 28 Mar 2026 17:15:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
Fri, 27 Mar 2026 20:30:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| Title | AI Code Prompt Injection Leading to Arbitrary Command Execution | |
| Weaknesses | CWE-20 CWE-78 |
|
| Metrics |
cvssV3_1
|
Fri, 27 Mar 2026 14:30:00 +0000
| 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 |
|
Status: PUBLISHED
Assigner: mitre
Published: 2026-03-27T00:00:00.000Z
Updated: 2026-03-27T19:48:56.483Z
Reserved: 2026-03-04T00:00:00.000Z
Link: CVE-2026-30304
Updated: 2026-03-27T19:48:19.379Z
Status : Received
Published: 2026-03-27T15:16:53.263
Modified: 2026-03-27T20:16:28.360
Link: CVE-2026-30304
No data.
ReportizFlow