# CVE-2026-30304: In its design for automatic terminal command execution, AI Code offers two options: Execute safe commands and execute all commands.

- Severity: Critical 9.6 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.52%, higher than 45% of CVEs (2026-12-01)
- Published: 2026-03-27T00:00:00.000Z
- Modified: 2026-11-11T19:10:00.360Z
- Weaknesses: CWE-20
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- tianguaduizhang ai_code: up to 3.12.4

## References

- <https://marketplace.visualstudio.com/items?itemName=tianguaduizhang.claude-dev-china> (product)
- <https://github.com/Secsys-FDU/LLM-Tool-Calling-CVEs/issues/2> (issue-tracking)

## Sources

- CVE List: [CVE-2026-30304](https://www.cve.org/CVERecord?id=CVE-2026-30304), CVE Terms of Use, modified 2026-03-27
- NVD: [CVE-2026-30304](https://nvd.nist.gov/vuln/detail/CVE-2026-30304), Public domain, modified 2026-11-11

---

Page: https://cve.day/CVE-2026-30304 · Whole record: https://cve.day/CVE-2026-30304.json · Rebuilt by cve.day 2026-11-25T22:59:17.383Z
