# CVE-2026-30312: DSAI-Cline OS command injection in command auto-approval module

Source: https://junglewise.ai/threats/cve-2026-30312-dsai-cline-os-command-injection-in-command-auto-approval-module  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-03-31. Updated: 2026-07-25  
License: CC BY 4.0 with a link back

CVE-2026-30312 · Severity: critical · CVSS 9.8 · Published 2026-03-31

DSAI-Cline is an autonomous coding agent used within IDEs to automate tasks like file editing and command execution. A critical security flaw in its command auto-approval feature allows attackers to bypass safety checks and execute unauthorized commands on the user's system. This could lead to a total system takeover, data theft, or the installation of malicious software without any user interaction.

Technologies: [Cline](https://junglewise.ai/threats/technologies/cline). Vendors: [Cline](https://junglewise.ai/threats/vendors/cline).

## Quick answers

**Is CVE-2026-30312 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-30312 being exploited in the wild.

**How severe is CVE-2026-30312?** Critical severity, with a CVSS score of 9.8, published 31 March 2026.

**Which products and versions are affected?** Cline <= 1.1.2.

**Is there a fix for CVE-2026-30312?** No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.

**How is CVE-2026-30312 attacked?** It is attacked over the network, in a network appliance.

**Am I affected by CVE-2026-30312?** Check whether you run Cline at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

An OS command injection vulnerability (CWE-78) exists in DSAI-Cline's Tool Call Parser and Command Validation Logic. The system uses string-based parsing to validate commands against a whitelist, filtering for common operators like ';', '&&', and '|', but fails to sanitize raw newline characters. By embedding a literal newline between a legitimate whitelisted command and a malicious payload, an attacker can trick the auto-approval module into validating only the first part of the string. When passed to the underlying PowerShell interpreter, the newline acts as a command separator, leading to Remote Code Execution (RCE). This affects versions up to and including 1.1.2.

## Affected products

- DSAI-Cline Cline-DSAI <= 1.1.2

## Timeline

- 2026-03-27: disclosed: Vulnerability reported on GitHub issues
- 2026-03-31: advisory: CVE-2026-30312 published

## References

- [https://github.com/Secsys-FDU/LLM-Tool-Calling-CVEs/issues/9](https://github.com/Secsys-FDU/LLM-Tool-Calling-CVEs/issues/9)
- [https://github.com/necboy/cline-DSAI](https://github.com/necboy/cline-DSAI)

## Related threats

- [Cline Cross-Origin WebSocket Hijacking in Kanban Server](https://junglewise.ai/threats/cve-2026-44211-cline-cross-origin-websocket-hijacking-in-kanban-server)
