---
id: CVE-2026-30312
title: >-
  DSAI-Cline's command auto-approval module contains a critical OS command
  injection vulnerability that renders its whitelist security mechanism
  completely ineffective
summary: >-
  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 …
severity: critical
cvss: 9.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-78
published: '2026-03-31'
updated: '2026-07-25'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-30312'
references:
  - url: 'https://github.com/Secsys-FDU/LLM-Tool-Calling-CVEs/issues/9'
    label: cve@mitre.org
  - url: 'https://github.com/necboy/cline-DSAI'
    label: cve@mitre.org
tags:
  - nvd
epss: 0.02134
epssPercentile: 0.81219
ingestedAt: '2026-07-25T11:55:03.175Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
