🇰🇷 한글 설명
Podman의 HyperV 머신 백엔드에서 VM 이미지 경로가 적절한 검증 없이 PowerShell 이중 인용 문자열에 삽입되어 발생하는 명령 주입 취약점입니다. 공격자가 조작된 머신 이름이나 이미지 디렉토리를 통해 PowerShell 하위 식을 주입하면 Podman 프로세스 권한으로 임의의 명령을 실행할 수 있습니다. Windows 환경에서는 SYSTEM 권한으로 코드가 실행될 수 있어 매우 위험합니다.
💡 쉬운 설명
Podman을 Windows에서 사용할 때, 특정 이름을 가진 가상 머신을 만들면 컴퓨터가 악성 명령어를 실행하게 만들 수 있는 보안 약점입니다. 해커가 이 방법을 사용하면 컴퓨터의 가장 높은 권한을 탈취할 수 있습니다.
🇺🇸 원문 (English)
Podman is a tool for managing OCI containers and pods. Versions 4.8.0 through 5.8.1 contain a command injection vulnerability in the HyperV machine backend in pkg/machine/hyperv/stubber.go, where the VM image path is inserted into a PowerShell double-quoted string without sanitization, allowing $() subexpression injection. Because PowerShell evaluates subexpressions inside double-quoted strings before executing the outer command, an attacker who can control the VM image path through a crafted machine name or image directory can execute arbitrary PowerShell commands with the privileges of the Podman process. On typical Windows installations this means SYSTEM-level code execution, and only Windows is affected as the code is exclusive to the HyperV backend. This issue has been patched in version 5.8.2.
📍 영향받는 시스템
Podman 4.8.0 ~ 5.8.1 (Windows HyperV 백엔드 사용 시)
⚔️ 공격 벡터
조작된 머신 이름 또는 이미지 디렉토리 경로를 통한 PowerShell $() 하위 식 주입
🛡️ 대응 방법
Podman을 최신 패치 버전인 5.8.2 이상으로 업데이트하십시오.
🔧 검증 코드
출력된 버전이 5.8.2 미만(4.8.0~5.8.1 사이)이면 취약한 상태입니다.
podman version | grep -E 'podman version'