🇰🇷 한글 설명
containerd 1.3.9 및 1.4.3 미만 버전에서 containerd-shim API가 호스트 네트워크 컨테이너에 부적절하게 노출되는 취약점입니다. UID 0 권한을 가진 악성 컨테이너가 추상 유닉스 도메인 소켓을 통해 권한을 상승시켜 새로운 프로세스를 높은 권한으로 실행할 수 있습니다.
💡 쉬운 설명
컨테이너가 호스트의 통로를 잘못 사용하여, 권한이 낮은 컨테이너가 마치 관리자처럼 시스템을 조작할 수 있는 보안 구멍이 발견되었습니다. 이를 통해 해커가 컨테이너를 넘어 컴퓨터 전체의 제어권을 얻을 위험이 있습니다.
🇺🇸 원문 (English)
containerd is an industry-standard container runtime and is available as a daemon for Linux and Windows. In containerd before versions 1.3.9 and 1.4.3, the containerd-shim API is improperly exposed to host network containers. Access controls for the shim’s API socket verified that the connecting process had an effective UID of 0, but did not otherwise restrict access to the abstract Unix domain socket. This would allow malicious containers running in the same network namespace as the shim, with an effective UID of 0 but otherwise reduced privileges, to cause new processes to be run with elevated privileges. This vulnerability has been fixed in containerd 1.3.9 and 1.4.3. Users should update to these versions as soon as they are released. It should be noted that containers started with an old version of containerd-shim should be stopped and restarted, as running containers will continue to be vulnerable even after an upgrade. If you are not providing the ability for untrusted users to start containers in the same network namespace as the shim (typically the "host" network namespace, for example with docker run --net=host or hostNetwork: true in a Kubernetes pod) and run with an effective UID of 0, you are not vulnerable to this issue. If you are running containers with a vulnerable configuration, you can deny access to all abstract sockets with AppArmor by adding a line similar to deny unix addr=@**, to your policy. It is best practice to run containers with a reduced set of privileges, with a non-zero UID, and with isolated namespaces. The containerd maintainers strongly advise against sharing namespaces with the host. Reducing the set of isolation mechanisms used for a container necessarily increases that container's privilege, regardless of what container runtime is used for running that container.
📍 영향받는 시스템
containerd versions before 1.3.9 and 1.4.3
⚔️ 공격 벡터
호스트 네트워크 네임스페이스를 공유하는 UID 0 컨테이너를 통한 추상 유닉스 도메인 소켓 접근
🛡️ 대응 방법
containerd를 1.3.9 또는 1.4.3 이상 버전으로 업데이트하고, 기존 컨테이너를 재시작하십시오.
🔧 검증 코드
명령어 결과에 1.3.9 또는 1.4.3 이상의 버전이 출력되지 않으면 취약할 가능성이 있습니다.
containerd --version 2>/dev/null | grep -E '1.3\.[0-9]|1.4\.[0-9]'