CVE-2026-30312 Command injection in n/a

Critical 9.8 Published Updated

Attackers can bypass command whitelists via newline injection in DSAI-Cline, achieving remote code execution without user interaction.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-30312?

CVE-2026-30312 is a critical command injection vulnerability in n/a, published on 31 Mar 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

DSAI-Cline's command auto-approval module contains a critical OS command injection vulnerability that renders its whitelist security mechanism completely ineffective. The system relies on string-based parsing to validate commands; while it intercepts dangerous operators such as ;, &&, ||, |, and command substitution patterns, it fails to account for raw newline characters embedded within the input. An attacker can construct a payload by embedding a literal newline between a whitelisted command and malicious code (e.g., git log malicious_command), forcing DSAI-Cline to misidentify it as a safe operation and automatically approve it. The underlying PowerShell interpreter treats the newline as a command separator, executing both commands sequentially, resulting in Remote Code Execution without any user interaction.

Weakness: CWE-78

Which versions are affected by CVE-2026-30312?

How do I fix CVE-2026-30312?

No fix has been published for CVE-2026-30312 yet. Limit exposure of the affected software until one is available.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2026-30312 being exploited?

There is no known exploitation of CVE-2026-30312 in the wild and no public exploit code.

Sources

Also known as GHSA-w4rv-fppc-w84h.

Is CVE-2026-30312 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free