CVE-2020-15257: containerd-shim API Exposed to Host Network Containers Vulerability Alert

On November 30, 2020, containerd had issued a risk notice for containerd’s privilege escalation vulnerability. The vulnerability number is CVE-2020-15257, the vulnerability level is medium.
containerd fixes a container permission escape vulnerability. The essence of the vulnerability is that a container that meets certain conditions can bypass access permissions to access containerd’s control API, resulting in elevated permissions.
DOCKER require login

Vulnerability Detail

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.

Affected version

  • containerd: <=1.3.7
  • containerd: <=1.4.0
  • containerd: <=1.4.1

Unaffected version

  • containerd: 1.3.9
  • containerd: 1.4.3

Solution

In this regard, we recommend that users upgrade containerd to the latest version in time.