Improper input validation in Tianguaduizhang Ai Code
CVE-2026-30304
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.
Vulnerability class: Drupalgeddon 2 (CVE-2018-7600)
EPSS: 0.004 (35.7th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 9.6 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H.
Affected products
- Tianguaduizhang Ai_code
- N/a — versions n/a
Weakness classification (CWE)
References
- cve@mitre.org (Product)
- cve@mitre.org (Issue Tracking)
Frequently asked questions
- What is CVE-2026-30304?
- CVE-2026-30304 is a critical-severity vulnerability in Tianguaduizhang Ai Code, classified under Improper Input Validation. CVSS score: 9.6/10. Published 2026-03-27.
- How severe is CVE-2026-30304?
- Critical severity. CVSS v3 base score is 9.6 out of 10.