🔍 CVE-2024-54132

0.0
CVSS Score
UNKNOWN
2024-12-04
2026-04-15 00:35
✅ 완료

🇰🇷 한글 설명

GitHub CLI의 gh run download 명령어에서 '..' 이름의 GitHub Actions 워크플로우 아티팩트 다운로드 시, 지정된 디렉토리보다 상위 디렉토리에 파일이 생성되거나 덮어쓰기될 수 있는 경로 조작 취약점입니다. 악의적인 아티팩트를 통해 의도하지 않은 위치의 파일을 변조할 수 있으며, 2.63.1에서 수정되었습니다.

💡 쉬운 설명

GitHub의 명령줄 도구(CLI)가 특정 이름의 파일을 다운로드할 때 예상과 다른 상위 디렉토리에 저장할 수 있습니다. 공격자는 이를 악용해 중요한 파일을 의도적으로 덮어쓸 수 있습니다.

🇺🇸 원문 (English)

The GitHub CLI is GitHub’s official command line tool. A security vulnerability has been identified in GitHub CLI that could create or overwrite files in unintended directories when users download a malicious GitHub Actions workflow artifact through gh run download. This vulnerability stems from a GitHub Actions workflow artifact named .. when downloaded using gh run download. The artifact name and --dir flag are used to determine the artifact’s download path. When the artifact is named .., the resulting files within the artifact are extracted exactly 1 directory higher than the specified --dir flag value. This vulnerability is fixed in 2.63.1.

📍 영향받는 시스템

GitHub CLI 버전 2.63.1 미만

⚔️ 공격 벡터

'..' 이름의 악의적 GitHub Actions 아티팩트를 gh run download 명령어로 다운로드하여 상위 디렉토리 경로 조작

🛡️ 대응 방법

GitHub CLI를 2.63.1 이상 버전으로 업데이트

🔧 검증 코드

PATCHED가 출력되면 안전함, VULNERABLE이 출력되면 즉시 업데이트 필요

Shell / Script
gh --version | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | awk -F. '{if($1*10000+$2*100+$3 >= 20630100) print "PATCHED"; else print "VULNERABLE"}'

💻 영향받는 소프트웨어

Git