Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

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

43
This month
CRITICAL 9.6UPGRADE

CVE-2026-30304 is a critical-severity flaw (CVSS 9.6) affecting ai code. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.

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

Why this priority

  • Critical severity

A fixed release or distro patch exists.

Risk facts

CVSS score9.6 (Critical)
Attack vectorNetwork (remote)
Attack complexityLow
Privileges neededNone
User interactionRequired
EPSS exploit chance0.5% (top 61%)
CISA exploited listNo
WeaknessCWE-20
Published2026-03-27
Last modified2026-06-17
Publisher (CNA): MITRE · Vendor: tianguaduizhang

Share: LinkedIn · X · Reddit

Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Am I affected?

Timeline

tianguaduizhang ai code UPGRADE
Affected: <= 3.12.4
Fixed in: newer than 3.12.4
Safe to downgrade to: no unaffected older release
1. Check installed version
apt-cache policy ai-code || rpm -q ai-code || ai-code --version
2. UPGRADE to newer than 3.12.4 (Debian / Ubuntu)
sudo apt update && sudo apt install --only-upgrade ai-code
2. UPGRADE (RHEL / Amazon Linux / Fedora)
sudo dnf upgrade ai-code
Note
Distros often backport fixes without changing the version number. Confirm with the distro advisory or changelog.
Verify at the official source NVD · CVE Program · Report a problem with this page
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.

Quick answers

How do I fix CVE-2026-30304?

ai code: upgrade to newer than 3.12.4. Exact commands for each OS are on this page.

Is CVE-2026-30304 being exploited?

CVE-2026-30304 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.

What does CVE-2026-30304 affect?

CVE-2026-30304 affects ai code. Severity is critical (CVSS 9.6). 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

How urgent is CVE-2026-30304?

Priority 43/100. Critical severity

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.