Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
9.6

CVE-2026-30304: AI Code's Safe Command Execution Vulnerable to Malicious Command Injection

CVE-2026-30304 · published 7 months ago
Summary

AI Code's automatic terminal command execution feature is flawed, allowing attackers to trick the system into running malicious commands without user approval. This could lead to unauthorized access or data modification. Update to a version that properly validates user input to prevent this type of attack.

Original advisory text
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...
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.
Fix within
Internet-facing 14 days
Internal At next upgrade
  • Not known to be exploited
  • Needs hands-on effort to exploit
  • Gives an attacker full control
Severity
9.6 Critical
Exploitation
<1% chance of attack within 30 days
Type
CWE-20Improper Input Validation
Timeline
Published27 Mar 2026
Updated4 Nov 2026
First seen27 Mar 2026
Sources
Track software like this
Free during beta