🔍 CVE-2021-41089

2.8
CVSS Score
LOW
2021-10-04
2026-06-17 04:07
✅ 완료

🇰🇷 한글 설명

Moby(Docker Engine)에서 `docker cp` 명령어를 사용하여 특수하게 제작된 컨테이너로 파일을 복사할 때, 호스트 파일 시스템의 기존 파일 권한이 변경될 수 있는 버그가 발견되었습니다. 이로 인해 파일에 대한 접근 권한이 의도치 않게 확대될 수 있으나, 추가적인 협력 프로세스 없이는 파일의 읽기, 수정 또는 실행이 직접적으로 가능하지는 않습니다.

💡 쉬운 설명

도커를 사용할 때 특정 파일을 컨테이너로 복사하면, 내 컴퓨터에 있는 다른 파일들의 보안 설정(권한)이 멋대로 바뀌어 다른 사람이 접근할 수 있게 될 위험이 있습니다. 다행히 파일 내용 자체가 바로 털리는 것은 아니지만, 보안 구멍이 생길 수 있는 문제입니다.

🇺🇸 원문 (English)

Moby is an open-source project created by Docker to enable software containerization. A bug was found in Moby (Docker Engine) where attempting to copy files using `docker cp` into a specially-crafted container can result in Unix file permission changes for existing files in the host’s filesystem, widening access to others. This bug does not directly allow files to be read, modified, or executed without an additional cooperating process. This bug has been fixed in Moby (Docker Engine) 20.10.9. Users should update to this version as soon as possible. Running containers do not need to be restarted.

📍 영향받는 시스템

Moby (Docker Engine) 20.10.9 미만 버전

⚔️ 공격 벡터

특수하게 조작된 컨테이너를 대상으로 `docker cp` 명령어를 실행하여 호스트 파일의 권한 변경 유도

🛡️ 대응 방법

Moby (Docker Engine)를 20.10.9 버전 이상으로 업데이트

🔧 검증 코드

출력된 버전이 20.10.9 이상인지 확인하여 취약 여부를 판단합니다.

Shell / Script
docker version --format '{{.Server.Version}}' | grep -E '^20\.(10\.[9-9]|[1-9][0-9]\..*)$|^2[1-9]\.'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Docker