CVEfocus › CVE database › CVE-2020-15257

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

CVSS 5.2 MediumEPSS 3.1% (higher than 89% of CVEs)Published 2020-12-01Updated 2024-08-04Assigner: GitHub_M

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.

CWE-669

What to do

Fixed builds are available from Alpine, Debian, Go, Ubuntu: see the table below for the fixed version per release.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

49Fixed

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 20.04containerdFixed1.3.3-0ubuntu2.2UBUNTU-CVE-2020-15257
Ubuntu 18.04containerdFixed1.3.3-0ubuntu1~18.04.4UBUNTU-CVE-2020-15257
Ubuntu 16.04containerdFixed1.2.6-0ubuntu1~16.04.6UBUNTU-CVE-2020-15257
Debian 14containerdFixed1.4.3~ds1-1DEBIAN-CVE-2020-15257
Debian 14docker.ioFixed20.10.0~rc1+dfsg2-1DEBIAN-CVE-2020-15257
Debian 13containerdFixed1.4.3~ds1-1DEBIAN-CVE-2020-15257
Debian 13docker.ioFixed20.10.0~rc1+dfsg2-1DEBIAN-CVE-2020-15257
Debian 12containerdFixed1.4.3~ds1-1DEBIAN-CVE-2020-15257
Debian 12docker.ioFixed20.10.0~rc1+dfsg2-1DEBIAN-CVE-2020-15257
Alpine Linux 3.24containerdFixed1.4.3-r0ALPINE-CVE-2020-15257
Alpine Linux 3.24dockerFixed19.03.14-r0ALPINE-CVE-2020-15257
Alpine Linux 3.24k3sFixed1.19.4.2-r0ALPINE-CVE-2020-15257
Alpine Linux 3.23containerdFixed1.4.3-r0ALPINE-CVE-2020-15257
Alpine Linux 3.23dockerFixed19.03.14-r0ALPINE-CVE-2020-15257
Alpine Linux 3.23k3sFixed1.19.4.2-r0ALPINE-CVE-2020-15257
Alpine Linux 3.22containerdFixed1.4.3-r0ALPINE-CVE-2020-15257
Alpine Linux 3.22dockerFixed19.03.14-r0ALPINE-CVE-2020-15257
Alpine Linux 3.22k3sFixed1.19.4.2-r0ALPINE-CVE-2020-15257
Alpine Linux 3.21containerdFixed1.4.3-r0ALPINE-CVE-2020-15257
Alpine Linux 3.21dockerFixed19.03.14-r0ALPINE-CVE-2020-15257
Alpine Linux 3.21k3sFixed1.19.4.2-r0ALPINE-CVE-2020-15257
Alpine Linux 3.20containerdFixed1.4.3-r0ALPINE-CVE-2020-15257
Alpine Linux 3.20dockerFixed19.03.14-r0ALPINE-CVE-2020-15257
Alpine Linux 3.20k3sFixed1.19.4.2-r0ALPINE-CVE-2020-15257
Alpine Linux 3.19containerdFixed1.4.3-r0ALPINE-CVE-2020-15257
Alpine Linux 3.19dockerFixed19.03.14-r0ALPINE-CVE-2020-15257
Alpine Linux 3.19k3sFixed1.19.4.2-r0ALPINE-CVE-2020-15257
Alpine Linux 3.18containerdFixed1.4.3-r0ALPINE-CVE-2020-15257
Alpine Linux 3.18dockerFixed19.03.14-r0ALPINE-CVE-2020-15257
Alpine Linux 3.18k3sFixed1.19.4.2-r0ALPINE-CVE-2020-15257
Alpine Linux 3.17containerdFixed1.4.3-r0ALPINE-CVE-2020-15257
Alpine Linux 3.17dockerFixed19.03.14-r0ALPINE-CVE-2020-15257
Alpine Linux 3.17k3sFixed1.19.4.2-r0ALPINE-CVE-2020-15257
Alpine Linux 3.16containerdFixed1.4.3-r0ALPINE-CVE-2020-15257
Alpine Linux 3.16dockerFixed19.03.14-r0ALPINE-CVE-2020-15257
Alpine Linux 3.16k3sFixed1.19.4.2-r0ALPINE-CVE-2020-15257
Alpine Linux 3.15containerdFixed1.4.3-r0ALPINE-CVE-2020-15257
Alpine Linux 3.15dockerFixed19.03.14-r0ALPINE-CVE-2020-15257
Alpine Linux 3.15k3sFixed1.19.4.2-r0ALPINE-CVE-2020-15257
Alpine Linux 3.14containerdFixed1.4.3-r0ALPINE-CVE-2020-15257
Alpine Linux 3.14dockerFixed19.03.14-r0ALPINE-CVE-2020-15257
Alpine Linux 3.14k3sFixed1.19.4.2-r0ALPINE-CVE-2020-15257
Alpine Linux 3.13containerdFixed1.4.3-r0ALPINE-CVE-2020-15257
Alpine Linux 3.13dockerFixed19.03.14-r0ALPINE-CVE-2020-15257
Alpine Linux 3.13k3sFixed1.19.4.2-r0ALPINE-CVE-2020-15257
Alpine Linux 3.12containerdFixed1.4.3-r0ALPINE-CVE-2020-15257
Alpine Linux 3.12dockerFixed19.03.14-r0ALPINE-CVE-2020-15257
Alpine Linux 3.11containerdFixed1.3.9-r0ALPINE-CVE-2020-15257
Go librarygithub.com/containerd/containerdFixed1.3.9GO-2022-0784

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.