🔍 CVE-2019-11249

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

🇰🇷 한글 설명

kubectl cp 명령어가 컨테이너 내의 tar 바이너리를 실행하여 파일을 복사하는 과정에서 발생하는 취약점입니다. 공격자가 컨테이너 내에 악성 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.13.9, versions prior to 1.14.5, versions prior to 1.15.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, 1.12.

📍 영향받는 시스템

Kubernetes 1.13.9 미만, 1.14.5 미만, 1.15.2 미만 및 1.1~1.12 버전 전체

⚔️ 공격 벡터

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

🛡️ 대응 방법

Kubernetes를 보안 패치가 적용된 최신 버전(1.13.9+, 1.14.5+, 1.15.2+ 등)으로 업데이트

🔧 검증 코드

명령어 결과에 취약한 버전 범위가 출력되면 해당 버전이 설치되어 있는 상태입니다.

Shell / Script
kubectl version --short 2>/dev/null | grep -E 'v(1\.(1[0-2])|1\.13\.(0-8)|1\.14\.(0-4)|1\.15\.(0-1))'

📊 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