🇰🇷 한글 설명
Apache MINA SSHD의 sshd-git 구성 요소에서 발생하는 입력값 검증 미흡 취약점입니다. 기존 취약점(CVE-2026-58624)에 대한 수정이 불충분하여, 'git archive' 명령 시 '-o=file.zip' 형식을 사용하면 서버에 파일을 생성할 수 있습니다. 이로 인해 인증된 클라이언트가 서버의 임의 위치에 파일을 작성할 수 있는 위험이 존재합니다.
💡 쉬운 설명
SSH를 통해 Git 명령을 실행할 수 있는 기능에서 보안 허점이 발견되었습니다. 공격자가 특정 명령어를 교묘하게 사용하여 서버에 원치 않는 파일을 몰래 저장할 수 있는 문제입니다.
🇺🇸 원문 (English)
Improper input validation in sshd-git in Apache MINA SSHD, versions up to 2.19.0 and 3.0.0-M1 to 3.0.0-M5. Apache
MINA SSHD is a Java library for client-side and server-side SSH.
Component org.apache.sshd:sshd-git provides though class GitPgmCommandFactory a way to configure an Apache MINA SSHD server such
that authenticated SSH clients can remotely execute git commands via the JGit library
on git repositories stored on the server. In CVE-2026-58624 this mechanism was restricted to only a few git commands, including "git archive" without "--output" or "-o" options such that the resulting archive would not be written on the server but instead sent back to the client over the SSH connection.
The fix done for CVE-2026-58624 was insufficient as it missed removing the single-argument "-o=file.zip" version of the command parameter from the "archive" command.
Users are recommended to upgrade to version 2.20.0 or 3.0.0-M6, which fix this issue.
📍 영향받는 시스템
Apache MINA SSHD (sshd-git) versions up to 2.19.0 and 3.0.0-M1 to 3.0.0-M5
⚔️ 공격 벡터
인증된 SSH 클라이언트가 'git archive' 명령에 '-o=파일명' 옵션을 포함하여 원격으로 실행
🛡️ 대응 방법
Apache MINA SSHD를 버전 2.20.0 또는 3.0.0-M6 이상으로 업그레이드하십시오.
🔧 검증 코드
출력된 결과에서 sshd-git의 버전을 확인하여 취약한 범위(2.19.0 이하 또는 3.0.0-M1~M5)에 해당하는지 체크합니다.
mvn dependency:tree | grep 'org.apache.sshd:sshd-git'