🔍 CVE-2026-30311

9.8
CVSS Score
CRITICAL
2026-03-31
2026-07-25 11:10
✅ 완료

🇰🇷 한글 설명

Ridvay Code의 명령 자동 승인 모듈에서 화이트리스트 보안 메커니즘을 무력화하는 심각한 OS 명령 주입 취약점이 발견되었습니다. 시스템이 정규 표현식을 사용하여 명령 구조를 분석할 때 쉘 명령 치환(Shell command substitution)을 제대로 처리하지 못해 발생합니다. 공격자는 이를 통해 사용자 상호작용 없이 원격 코드 실행(RCE)을 수행할 수 있습니다.

💡 쉬운 설명

프로그램이 안전한 명령인지 검사하는 과정에서 교묘하게 숨겨진 악성 명령을 찾아내지 못하는 결함이 있습니다. 이를 통해 해커가 허용된 명령 안에 몰래 악성 코드를 끼워 넣어 컴퓨터를 마음대로 조종할 수 있습니다.

🇺🇸 원문 (English)

Ridvay Code's command auto-approval module contains a critical OS command injection vulnerability that renders its whitelist security mechanism completely ineffective. The system relies on fragile regular expressions to parse command structures; while it attempts to intercept dangerous operations, it fails to account for standard Shell command substitution Ridvay Code (specifically$(...)and backticks ...). An attacker can construct a command such as git log --grep="$(malicious_command)", forcing Syntx to misidentify it as a safe git operation and automatically approve it. The underlying Shell prioritizes the execution of the malicious code injected within the arguments, resulting in Remote Code Execution without any user interaction.

📍 영향받는 시스템

Ridvay Code (command auto-approval module 사용 버전)

⚔️ 공격 벡터

정규 표현식의 허점을 이용한 쉘 명령 치환($(...) 또는 `...`)을 포함한 명령 주입

🛡️ 대응 방법

명령어 파싱 로직을 정규 표현식 대신 엄격한 구문 분석기로 교체하고, 입력값에 대한 쉘 치환 문자열 필터링을 강화하십시오.

🔧 검증 코드

명령어 실행 결과에 'auto-approval' 모듈이 활성화되어 있는지 확인하여 취약한 기능 사용 여부를 판단합니다.

Shell / Script
echo "git log --grep=\"\"\""; echo "Ridnay Code version check command" | grep -i 'auto-approval'

📊 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