🔍 CVE-2019-6111

5.9
CVSS Score
MEDIUM
2019-01-31
2026-10-14 07:16
✅ 완료

🇰🇷 한글 설명

OpenSSH 7.9의 scp 구현 방식에서 파일 이름 검증이 미흡하여 발생하는 취약점입니다. 악의적인 scp 서버나 중간자 공격자가 클라이언트의 대상 디렉토리에 임의의 파일을 덮어쓸 수 있습니다. 특히 재귀적 옵션(-r)을 사용할 경우 .ssh/authorized_keys와 같은 중요한 설정 파일까지 조작될 수 있습니다.

💡 쉬운 설명

파일을 전송받는 프로그램이 서버가 보내주는 파일 이름이 안전한지 제대로 확인하지 않는 문제입니다. 이를 통해 해커가 내 컴퓨터의 중요한 파일을 몰래 바꿔치기할 수 있습니다.

🇺🇸 원문 (English)

An issue was discovered in OpenSSH 7.9. Due to the scp implementation being derived from 1983 rcp, the server chooses which files/directories are sent to the client. However, the scp client only performs cursory validation of the object name returned (only directory traversal attacks are prevented). A malicious scp server (or Man-in-The-Middle attacker) can overwrite arbitrary files in the scp client target directory. If recursive operation (-r) is performed, the server can manipulate subdirectories as well (for example, to overwrite the .ssh/authorized_keys file).

📍 영향받는 시스템

OpenSSH 7.9 및 해당 구현을 사용하는 scp 클라이언트

⚔️ 공격 벡터

악의적인 scp 서버를 운영하거나 통신 중간에 개입하여 파일 이름을 조작하는 방식

🛡️ 대응 방법

OpenSSH를 최신 버전으로 업데이트하거나 scp 대신 sftp 사용을 권장함

🔧 검증 코드

출력 결과에 OpenSSH_7.9가 포함되어 있다면 해당 취약점에 노출될 가능성이 있는 버전입니다.

Shell / Script
ssh -V 2>&1 | grep -E 'OpenSSH_7.9'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

OpenSSH