CVE-2026-30304
Tianguaduizhang Ai Code ≤ 3.12.4
Raw vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:HCVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.
Summary
CVE-2026-30304 is a critical-severity Improper Input Validation (CWE-20) vulnerability in Tianguaduizhang Ai Code. Its CVSS base score is 9.6 (Critical).
Operationally, ranked in the top 47% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog.
This vulnerability is AI-related — categorised as Enterprise AI Assistants; in the LLM/Generative AI Risks risk domain.
The strongest mitigations our analysis identified map to SA-11 (Developer Testing and Evaluation) and SI-10 (Information Input Validation) — see the control section below for these in your framework.
Deeper analysis AI-assisted summary
Synthesised by an AI model from the NVD description and linked references — a reading aid, not an authoritative source.
CVE-2026-30304 is a high-severity vulnerability (CVSS 9.6, CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H) affecting the AI Code tool's automatic terminal command execution feature. AI Code provides two execution modes: "Execute safe commands," where the AI model determines if a command is safe for automatic execution or requires user approval if deemed potentially destructive, and "Execute all commands." The vulnerability stems from improper input validation (CWE-20), making the safety classification mechanism highly susceptible to prompt injection attacks. Attackers can craft inputs that mislead the model into misclassifying malicious commands as safe.
A remote attacker with no privileges can exploit this vulnerability by using a generic template to wrap arbitrary malicious commands in AI Code prompts. This bypasses the user approval requirement for potentially destructive commands, as the model incorrectly deems them safe, leading to automatic execution. Exploitation requires user interaction, such as a user processing a malicious prompt in the tool, but results in full arbitrary command execution on the victim's system, with high impacts on confidentiality, integrity, and availability due to the changed scope.
For mitigation details, refer to the advisories linked in the CVE references, including the GitHub issue at https://github.com/Secsys-FDU/LLM-Tool-Calling-CVEs/issues/2 and the Visual Studio Marketplace page for the related extension at https://marketplace.visualstudio.com/items?itemName=tianguaduizhang.claude-dev-china. This vulnerability highlights risks in LLM-based tool calling for command execution, particularly prompt injection in AI-driven development tools.
OWASP Top 10 for Web (2025)
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2026-16602
Vulnerability Data
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…
more
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.
- CWE(s)
AI Security AnalysisAI
- AI Category
- Enterprise AI Assistants
- Risk Domain
- LLM/Generative AI Risks
- OWASP Top 10 for LLMs 2025
- None mapped
- AI-specific weaknesses CR
- CWE-1427 — Prompt injection misleads safety judgment, letting model output drive command execution without validation.
Mapped by Security Resilience · not in NVD. Poisoning and extraction cases are routed to MITRE ATLAS instead of a synthetic CWE.- Classification Reason
- Matched keywords: ai, prompt injection
Related Threats
CVEs Like This One
Affected Assets
Mitigating Controls
Mitigating Controls (NIST 800-53 r5)
Our mappings, made for this CVE.
Developer testing and evaluation can discover missing input validation through analysis or test cases.
SI-10 directly requires validity checks on information inputs, structurally preventing improper or missing validation.
Requiring documented development standards and tools can embed input-validation practices into the engineering process.
Mitigating Controls (ISO/IEC 27001:2022 Annex A)
Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.
Testing against a defined set of requirements and using code review plus vulnerability scanning forces validation of inputs and handling of unanticipated conditions, reducing the chance that malformed data will be accepted.
Requiring language-specific secure coding standards, peer review, SAST and documented mitigation of common programming errors forces validation of all inputs before they are trusted.
Hardening callouts derived
DISA STIG baselines are authored against specific weaknesses. Where this CVE cites a broad weakness class, the mapping is not asserted at that abstraction (owner ruling, 2026-09-25: grade only at Base and below), so no rule is shown here rather than a rule shown against the wrong grain.
- No fine-grained STIG row for CWE-20, a class-level weakness, and none of its children carries one either.