CVE-2026-30304
Last modified
CVE-2026-30304 is a critical-severity vulnerability rated 9.6/10 on the CVSS scale. 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. EPSS estimates a 0.43% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Tianguaduizhang | Ai Code | <= 3.12.4 |
References
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2026-30304?
How severe is CVE-2026-30304?
How do I fix CVE-2026-30304?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-3029A path traversal and arbitrary file write vulnerability exis…7.5
- CVE-2026-30290An arbitrary file overwrite vulnerability in InTouch Contact…8.4
- CVE-2026-30291An arbitrary file overwrite vulnerability in Ora Tools PDF R…8.4
- CVE-2026-30292An arbitrary file overwrite vulnerability in Docudepot PDF R…8.4
- CVE-2026-30302The command auto-approval module in CodeRider-Kilo contains …10
- CVE-2026-30303The command auto-approval module in Axon Code contains an OS…9.8
- CVE-2026-30305Syntx's command auto-approval module contains a critical OS …9.8
- CVE-2026-30306In its design for automatic terminal command execution, Saka…9.8
- CVE-2026-30307Roo Code's command auto-approval module contains a critical …9.8
- CVE-2026-30308In its design for automatic terminal command execution, HAI …9.8
- CVE-2026-30309InfCode's terminal auto-execution module contains a critical…7.8
- CVE-2026-3031Image::EPEG versions through 0.15 for Perl embeds an unsuppo…9.8
Are you affected by CVE-2026-30304?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
