In its design for automatic terminal command execution, AI Code offers two options…
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- No fix listed
Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:tianguaduizhang:ai_code:*:*:*:*:*:visual_studio_code:*:* | up to 3.12.4 | Vulnerable | Tianguaduizhang |
- cpe:2.3:a:tianguaduizhang:ai_code:*:*:*:*:*:visual_studio_code:*:* Versions up to 3.12.4 Vulnerable ·Tianguaduizhang
Remediation
No fixed version listed by the sources yet.
Timeline
- 2026-10-02 Threatist record created from CVE-2026-30304
- 2026-10-03 Alias added: GHSA-3vj9-9x9c-pmm5
- 2026-10-25 EPSS moved to the below the 50th percentile
References
Sources
- CVE-2026-30304 · CVE Program
- CVE-2026-30304 · NVD
- FIRST EPSS
- GHSA-3vj9-9x9c-pmm5 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences