🔍 CVE-2026-85756

7.5
CVSS Score
HIGH
2026-09-16
2026-09-30 17:51
✅ 완료

🇰🇷 한글 설명

SSH.NET 라이브러리의 ScpClient에서 원격 경로를 처리할 때 명령 주입 취약점이 존재합니다. 공격자가 제어하는 경로에 셸 메타문자를 포함할 경우, 인증된 SSH 사용자의 권한으로 임의의 명령이 실행될 수 있습니다.

💡 쉬운 설명

파일을 전송할 때 사용하는 경로 이름에 특수 문자를 섞어 넣으면, 서버가 이를 파일 이름이 아닌 실행 명령으로 착각하여 공격자가 원하는 동작을 수행하게 됩니다. 이는 마치 파일 이름 칸에 '파일 삭제'라는 명령어를 적어 넣는 것과 같습니다.

🇺🇸 원문 (English)

SSH.NET is a Secure Shell (SSH) library for .NET. Prior to 2026.0.0, ScpClient places caller-supplied remote paths into the command used to run scp on the server, and the default RemotePathTransformation.DoubleQuote transformation cannot safely quote every remote command interpreter. When an application passes an attacker-controlled path to a shell-based server, shell metacharacters not neutralized by the active IRemotePathTransformation can execute commands as the authenticated SSH user. Exploitation requires a shell-based server and a path crafted for that shell's parsing rules; non-shell servers and paths fully neutralized by the selected transformation are not affected. RemotePathTransformation.ShellQuote is available for POSIX shells, while SftpClient avoids a remote shell entirely. This issue is fixed in version 2026.0.0.

📍 영향받는 시스템

SSH.NET 버전 2026.0.0 미만 버전

⚔️ 공격 벡터

공격자가 제어 가능한 경로 문자열을 통해 셸 메타문자를 주입하여 원격 명령 실행

🛡️ 대응 방법

SSH.NET를 2026.0.0 이상 버전으로 업데이트하거나, SftpClient를 사용하거나, POSIX 환경의 경우 RemotePathTransformation.ShellQuote를 사용하십시오.

🔧 검증 코드

출력된 SSH.NET의 버전이 2026.0.0 미만인지 확인하십시오.

Shell / Script
dotnet list package | grep SSH.NET

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

IBM WebSphere Application Server