9.6critical
In its design for automatic terminal command execution, AI Code offers two options: Execute safe commands and execute all commands.
- Severity
- 9.6critical CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.52% (higher than 45% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| tianguaduizhang ai_code | up to 3.12.4 | NVD |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.
What each source says
CVE List
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.
NVD (es)
En su diseño para la ejecución automática de comandos de terminal, AI Code ofrece dos opciones: Ejecutar comandos seguros y ejecutar todos los comandos. La descripción de la primera establece que los comandos que el modelo determine como seguros se ejecutarán automáticamente, mientras que si el modelo juzga un comando como potencialmente destructivo, aún requiere la aprobación del usuario. Sin embargo, este diseño es altamente susceptible a ataques de inyección de prompts. Un atacante puede emplear una plantilla genérica para envolver cualquier comando malicioso y engañar al modelo para que lo clasifique erróneamente como un comando ’seguro’, eludiendo así el requisito de aprobación del usuario y resultando en la ejecución arbitraria de comandos.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-30304 changed 2026-03-27 | CVE Terms of Use |
| NVD | CVE-2026-30304 changed 2026-11-11 | Public domain |