🇰🇷 한글 설명
GitHub CLI(gh) 2.28.0부터 2.97.0 버전에서 Codespace 포트 포워딩 시 로컬 리스너가 모든 네트워크 인터페이스에 기본적으로 바인딩되는 취약점이 발견되었습니다. 이로 인해 포트 포워딩이 활성화된 동안 Codespace 서비스가 사용자의 로컬 IP를 통해 외부 호스트에 노출될 수 있습니다. 이 문제는 버전 2.98.0에서 수정되었습니다.
💡 쉬운 설명
GitHub CLI를 사용하여 코드를 작업할 때, 내 컴퓨터로 연결된 통로가 보안 설정 없이 모든 네트워크에 열려 있는 상태가 될 수 있습니다. 이로 인해 같은 네트워크에 있는 다른 사람이 내 작업 내용을 몰래 볼 수 있는 위험이 있습니다.
🇺🇸 원문 (English)
GitHub CLI (gh) is GitHub's official command line tool. Versions 2.28.0 through 2.97.0 bind the local listener created by gh codespace ports forward to all available network interfaces by default. While port forwarding is active, a service in a Codespace can therefore become reachable through the user's non-loopback local IP addresses by other hosts that can route to the user's machine. This behavior does not change the GitHub-side visibility of the Codespaces port. Instead, it exposes the forwarded service through a wildcard-bound listener on the user's local machine, even when the source Codespaces port remains private. Exploitation requires a network-adjacent attacker to reach the victim's machine while forwarding is active. This issue is fixed in version 2.98.0.
📍 영향받는 시스템
GitHub CLI (gh) versions 2.28.0 through 2.97.0
⚔️ 공격 벡터
네트워크 인접 공격자가 포트 포워딩이 활성화된 피해자의 로컬 IP 주소로 접근하여 서비스에 접속
🛡️ 대응 방법
GitHub CLI를 최신 버전인 2.98.0 이상으로 업데이트
🔧 검증 코드
출력된 버전 번호가 2.98.0 미만(2.28.0 ~ 2.97.0 사이)이면 취약한 상태입니다.
gh --version | grep -E 'gh version [0-9]+\.[0-9]+\.[0-9]+'