CVE-2026-30304: In its design for automatic terminal command execution, AI Code offers two options: Execute safe commands and
CVE-2026-30304 is a critical-severity flaw (CVSS 9.6) affecting ai code. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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
Why this priority
- Critical severity
A fixed release or distro patch exists.
Risk facts
| CVSS score | 9.6 (Critical) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | Required |
| EPSS exploit chance | 0.5% (top 61%) |
| CISA exploited list | No |
| Weakness | CWE-20 |
| Published | 2026-03-27 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2026-30304?
ai code: upgrade to newer than 3.12.4. Exact commands for each OS are on this page.
Is CVE-2026-30304 being exploited?
CVE-2026-30304 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2026-30304 affect?
CVE-2026-30304 affects ai code. Severity is critical (CVSS 9.6). 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
How urgent is CVE-2026-30304?
Priority 43/100. Critical severity