🇰🇷 한글 설명
Moby(Docker Engine) 20.10.14 미만 버전에서 컨테이너 시작 시 Linux 프로세스 상속 가능(inheritable) 기능이 비정상적으로 설정되는 버그가 발견되었습니다. 이로 인해 파일 기능(file capabilities)을 가진 실행 파일을 실행할 경우, 권한이 없는 사용자도 컨테이너의 경계 집합(bounding set) 내에서 해당 기능을 추가로 획득할 수 있습니다. 이는 컨테이너 내부에서 사용자 및 그룹을 통해 권한 분리를 수행하는 환경에 직접적인 영향을 미칩니다.
💡 쉬운 설명
도커 컨테이너 내부에서 원래는 가질 수 없는 추가 권한을 프로그램이 실행될 때 몰래 얻을 수 있는 보안 결함입니다. 컨테이너 안에서 사용자 권한을 나누어 관리하는 경우, 공격자가 권한을 상승시켜 시스템을 제어할 위험이 있습니다.
🇺🇸 원문 (English)
Moby is an open-source project created by Docker to enable and accelerate software containerization. A bug was found in Moby (Docker Engine) prior to version 20.10.14 where containers were incorrectly started with non-empty inheritable Linux process capabilities, creating an atypical Linux environment and enabling programs with inheritable file capabilities to elevate those capabilities to the permitted set during `execve(2)`. Normally, when executable programs have specified permitted file capabilities, otherwise unprivileged users and processes can execute those programs and gain the specified file capabilities up to the bounding set. Due to this bug, containers which included executable programs with inheritable file capabilities allowed otherwise unprivileged users and processes to additionally gain these inheritable file capabilities up to the container's bounding set. Containers which use Linux users and groups to perform privilege separation inside the container are most directly impacted. This bug did not affect the container security sandbox as the inheritable set never contained more capabilities than were included in the container's bounding set. This bug has been fixed in Moby (Docker Engine) 20.10.14. Running containers should be stopped, deleted, and recreated for the inheritable capabilities to be reset. This fix changes Moby (Docker Engine) behavior such that containers are started with a more typical Linux environment. As a workaround, the entry point of a container can be modified to use a utility like `capsh(1)` to drop inheritable capabilities prior to the primary process starting.
📍 영향받는 시스템
Moby (Docker Engine) 20.10.14 미만 버전
⚔️ 공격 벡터
컨테이너 내부에 상속 가능한 파일 기능이 설정된 실행 파일이 존재할 경우, 이를 실행하여 권한 상승 시도
🛡️ 대응 방법
Moby(Docker Engine)를 20.10.14 이상 버전으로 업데이트하고, 기존 컨테이너를 삭제 후 재생성
🔧 검증 코드
출력된 버전 번호가 20.10.14보다 낮으면 취약한 상태이며, 20.10.14 이상이면 안전합니다.
docker version --format '{{.Server.Version}}' | grep -E '^20\.[0-9]+\.'