🔍 CVE-2026-30313

9.8
CVSS Score
CRITICAL
2026-03-30
2026-04-08 15:38
✅ 완료

🇰🇷 한글 설명

DSAI-Cline의 명령어 자동 승인 모듈에서 심각한 OS 커맨드 인젝션 취약점이 발견되었습니다. 보안 화이트리스트가 줄바꿈 문자를 제대로 필터링하지 못해, 공격자가 허용된 명령어 뒤에 줄바꿈과 악성 코드를 삽입하면 PowerShell이 이를 별개의 명령어로 인식하여 원격 코드 실행(RCE)이 가능합니다.

💡 쉬운 설명

안전한 명령어만 실행하도록 설정된 보안 문을 줄바꿈 문자로 속여서 통과하는 취약점입니다. 이를 통해 해커가 사용자 몰래 컴퓨터에 위험한 명령어를 내릴 수 있습니다.

🇺🇸 원문 (English)

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.

📍 영향받는 시스템

DSAI-Cline (Command auto-approval module)

⚔️ 공격 벡터

화이트리스트 명령어와 악성 페이로드 사이에 줄바꿈 문자(\n)를 삽입하여 PowerShell의 명령어 구분자 특성을 이용함

🛡️ 대응 방법

입력값 검증 단계에서 줄바꿈 문자(\n, \r)를 포함한 모든 제어 문자를 엄격히 필터링하도록 업데이트하십시오.

🔧 검증 코드

설치된 DSAI-Cline의 버전이 보안 패치가 적용되지 않은 취약한 버전인지 확인하십시오.

Shell / Script
npm list -g @dsai-cline/core 2>/dev/null | grep -E 'version'

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

💻 영향받는 소프트웨어

Git