🔍 CVE-2019-11246

6.5
CVSS Score
MEDIUM
2019-08-29
2026-06-17 02:12
✅ 완료

🇰🇷 한글 설명

kubectl cp 명령어를 사용할 때 컨테이너 내부의 tar 바이너리가 악성일 경우, 사용자 로컬 머신에서 임의의 코드가 실행되거나 파일이 생성될 수 있는 취약점입니다. 공격자는 이를 통해 로컬 사용자의 권한 범위 내에서 시스템의 임의 경로에 파일을 쓸 수 있습니다.

💡 쉬운 설명

컨테이너에 있는 파일을 내 컴퓨터로 가져올 때, 컨테이너 안에 숨겨진 가짜 프로그램을 이용해 내 컴퓨터를 해킹하는 방식입니다. 이 과정에서 공격자가 내 컴퓨터의 중요한 파일을 마음대로 조작할 수 있습니다.

🇺🇸 원문 (English)

The kubectl cp command allows copying files between containers and the user machine. To copy files from a container, Kubernetes runs tar inside the container to create a tar archive, copies it over the network, and kubectl unpacks it on the user’s machine. If the tar binary in the container is malicious, it could run any code and output unexpected, malicious results. An attacker could use this to write files to any path on the user’s machine when kubectl cp is called, limited only by the system permissions of the local user. Kubernetes affected versions include versions prior to 1.12.9, versions prior to 1.13.6, versions prior to 1.14.2, and versions 1.1, 1.2, 1.4, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9, 1.10, 1.11.

📍 영향받는 시스템

Kubernetes versions prior to 1.12.9, 1.13.6, 1.14.2, and all versions 1.1 through 1.11

⚔️ 공격 벡터

컨테이너 내부에 악성 tar 바이너리를 배치한 후 사용자가 kubectl cp 명령을 실행하도록 유도

🛡️ 대응 방법

Kubernetes를 취약점이 해결된 최신 버전(1.12.9, 1.13.6, 1.14.2 이상)으로 업데이트

🔧 검증 코드

출력된 GitVersion이 취약한 버전 범위(1.12.9, 1.13.6, 1.14.2 미만 등)에 해당하는지 확인

Shell / Script
kubectl version --short | grep -E 'Build Date|GitVersion'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Kubernetes