🔍 CVE-2026-100368

8.4
CVSS Score
HIGH
2026-09-25
2026-09-30 19:57
✅ 완료

🇰🇷 한글 설명

CliInvoke.Specializations 라이브러리의 PowerShell 및 Cmd 래퍼에서 OS 명령 주입 취약점이 발견되었습니다. 공격자가 제어 가능한 입력값에 큰따옴표를 포함시켜 셸의 인용 부호를 깨뜨림으로써, 호스트 프로세스의 권한으로 임의의 명령을 실행할 수 있습니다.

💡 쉬운 설명

프로그램이 명령어를 실행할 때 사용자가 입력한 값을 제대로 검사하지 않아 발생하는 문제입니다. 나쁜 의도를 가진 사용자가 특수 문자를 입력하면 컴퓨터가 원래 의도와 다른 위험한 명령을 실행하게 됩니다.

🇺🇸 원문 (English)

CliInvoke is a .NET library for invoking command-line programs, and its `CliInvoke.Specializations` packages provide specialized wrappers for shells such as PowerShell and Windows Command Prompt. `CliInvoke.Specializations` versions 2.2.0 through 2.8.4, 2.9.0 through 2.9.3, 2.10.0 through 2.10.4, 3.0.0-alpha.1 through 3.0.0-alpha.4, and 3.0.0-alpha.8 through 3.0.0-alpha.10, as well as `AlastairLundy.CliInvoke.Specializations` versions 1.0.0-rc.1 through 1.6.1.1, contain an OS command injection vulnerability in their PowerShell and Cmd wrappers. The wrappers pass a caller-controlled target and arguments to `pwsh -Command` or `cmd /c` using a single `ProcessStartInfo.Arguments` string, allowing a double quote in untrusted input to break operating-system-level quoting and cause the shell to execute an additional command with the host process's privileges. The vulnerability is patched in `CliInvoke.Specializations` versions 2.8.5, 2.9.4, 2.10.5, and 3.0.0-beta.1, and in `AlastairLundy.CliInvoke.Specializations` version 2.0.2. No complete workaround is available; users unable to upgrade should reject or remove double quotes from target paths and arguments, additionally reject shell metacharacters in versions 2.2.0 through 2.9.2 and 3.0.0-alpha.1 through 3.0.0-alpha.4, or bypass the PowerShell and Cmd wrappers and invoke target processes directly when handling untrusted input.

📍 영향받는 시스템

CliInvoke.Specializations (2.2.0-2.8.4, 2.9.0-2.9.3, 2.10.0-2.10.4, 3.0.0-alpha.1-alpha.4, 3.0.0-alpha.8-alpha.10), AlastairLundy.CliInvoke.Specializations (1.0.0-rc.1-1.6.1.1)

⚔️ 공격 벡터

신뢰할 수 없는 입력값에 큰따옴표(")를 삽입하여 OS 수준의 인용 부호를 무력화하고 추가 명령을 실행함

🛡️ 대응 방법

패치된 버전(CliInvoke.Specializations 2.8.5, 2.9.4, 2.10.5, 3.0.0-beta.1 또는 AlastairLundy.CliInvoke.Specializations 2.0.2)으로 업데이트하거나 입력값에서 큰따옴표 및 메타문자를 제거함

🔧 검증 코드

출력된 패키지 목록에서 취약한 버전 범위가 포함되어 있는지 확인합니다.

Shell / Script
dotnet list package | grep -E 'CliInvoke.Specializations|AlastairLundy.CliInvoke.Specializations'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

.NET