CVE-2020-15257containerd-shim API Exposed to Host Network Containers
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.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 20.04 | containerd | Fixed | 1.3.3-0ubuntu2.2 | UBUNTU-CVE-2020-15257 |
| Ubuntu 18.04 | containerd | Fixed | 1.3.3-0ubuntu1~18.04.4 | UBUNTU-CVE-2020-15257 |
| Ubuntu 16.04 | containerd | Fixed | 1.2.6-0ubuntu1~16.04.6 | UBUNTU-CVE-2020-15257 |
| Debian 14 | containerd | Fixed | 1.4.3~ds1-1 | DEBIAN-CVE-2020-15257 |
| Debian 14 | docker.io | Fixed | 20.10.0~rc1+dfsg2-1 | DEBIAN-CVE-2020-15257 |
| Debian 13 | containerd | Fixed | 1.4.3~ds1-1 | DEBIAN-CVE-2020-15257 |
| Debian 13 | docker.io | Fixed | 20.10.0~rc1+dfsg2-1 | DEBIAN-CVE-2020-15257 |
| Debian 12 | containerd | Fixed | 1.4.3~ds1-1 | DEBIAN-CVE-2020-15257 |
| Debian 12 | docker.io | Fixed | 20.10.0~rc1+dfsg2-1 | DEBIAN-CVE-2020-15257 |
| Alpine Linux 3.24 | containerd | Fixed | 1.4.3-r0 | ALPINE-CVE-2020-15257 |
| Alpine Linux 3.24 | docker | Fixed | 19.03.14-r0 | ALPINE-CVE-2020-15257 |
| Alpine Linux 3.24 | k3s | Fixed | 1.19.4.2-r0 | ALPINE-CVE-2020-15257 |
| Alpine Linux 3.23 | containerd | Fixed | 1.4.3-r0 | ALPINE-CVE-2020-15257 |
| Alpine Linux 3.23 | docker | Fixed | 19.03.14-r0 | ALPINE-CVE-2020-15257 |
| Alpine Linux 3.23 | k3s | Fixed | 1.19.4.2-r0 | ALPINE-CVE-2020-15257 |
| Alpine Linux 3.22 | containerd | Fixed | 1.4.3-r0 | ALPINE-CVE-2020-15257 |
| Alpine Linux 3.22 | docker | Fixed | 19.03.14-r0 | ALPINE-CVE-2020-15257 |
| Alpine Linux 3.22 | k3s | Fixed | 1.19.4.2-r0 | ALPINE-CVE-2020-15257 |
| Alpine Linux 3.21 | containerd | Fixed | 1.4.3-r0 | ALPINE-CVE-2020-15257 |
| Alpine Linux 3.21 | docker | Fixed | 19.03.14-r0 | ALPINE-CVE-2020-15257 |
| Alpine Linux 3.21 | k3s | Fixed | 1.19.4.2-r0 | ALPINE-CVE-2020-15257 |
| Alpine Linux 3.20 | containerd | Fixed | 1.4.3-r0 | ALPINE-CVE-2020-15257 |
| Alpine Linux 3.20 | docker | Fixed | 19.03.14-r0 | ALPINE-CVE-2020-15257 |
| Alpine Linux 3.20 | k3s | Fixed | 1.19.4.2-r0 | ALPINE-CVE-2020-15257 |
| Alpine Linux 3.19 | containerd | Fixed | 1.4.3-r0 | ALPINE-CVE-2020-15257 |
| Alpine Linux 3.19 | docker | Fixed | 19.03.14-r0 | ALPINE-CVE-2020-15257 |
| Alpine Linux 3.19 | k3s | Fixed | 1.19.4.2-r0 | ALPINE-CVE-2020-15257 |
| Alpine Linux 3.18 | containerd | Fixed | 1.4.3-r0 | ALPINE-CVE-2020-15257 |
| Alpine Linux 3.18 | docker | Fixed | 19.03.14-r0 | ALPINE-CVE-2020-15257 |
| Alpine Linux 3.18 | k3s | Fixed | 1.19.4.2-r0 | ALPINE-CVE-2020-15257 |
| Alpine Linux 3.17 | containerd | Fixed | 1.4.3-r0 | ALPINE-CVE-2020-15257 |
| Alpine Linux 3.17 | docker | Fixed | 19.03.14-r0 | ALPINE-CVE-2020-15257 |
| Alpine Linux 3.17 | k3s | Fixed | 1.19.4.2-r0 | ALPINE-CVE-2020-15257 |
| Alpine Linux 3.16 | containerd | Fixed | 1.4.3-r0 | ALPINE-CVE-2020-15257 |
| Alpine Linux 3.16 | docker | Fixed | 19.03.14-r0 | ALPINE-CVE-2020-15257 |
| Alpine Linux 3.16 | k3s | Fixed | 1.19.4.2-r0 | ALPINE-CVE-2020-15257 |
| Alpine Linux 3.15 | containerd | Fixed | 1.4.3-r0 | ALPINE-CVE-2020-15257 |
| Alpine Linux 3.15 | docker | Fixed | 19.03.14-r0 | ALPINE-CVE-2020-15257 |
| Alpine Linux 3.15 | k3s | Fixed | 1.19.4.2-r0 | ALPINE-CVE-2020-15257 |
| Alpine Linux 3.14 | containerd | Fixed | 1.4.3-r0 | ALPINE-CVE-2020-15257 |
| Alpine Linux 3.14 | docker | Fixed | 19.03.14-r0 | ALPINE-CVE-2020-15257 |
| Alpine Linux 3.14 | k3s | Fixed | 1.19.4.2-r0 | ALPINE-CVE-2020-15257 |
| Alpine Linux 3.13 | containerd | Fixed | 1.4.3-r0 | ALPINE-CVE-2020-15257 |
| Alpine Linux 3.13 | docker | Fixed | 19.03.14-r0 | ALPINE-CVE-2020-15257 |
| Alpine Linux 3.13 | k3s | Fixed | 1.19.4.2-r0 | ALPINE-CVE-2020-15257 |
| Alpine Linux 3.12 | containerd | Fixed | 1.4.3-r0 | ALPINE-CVE-2020-15257 |
| Alpine Linux 3.12 | docker | Fixed | 19.03.14-r0 | ALPINE-CVE-2020-15257 |
| Alpine Linux 3.11 | containerd | Fixed | 1.3.9-r0 | ALPINE-CVE-2020-15257 |
| Go library | github.com/containerd/containerd | Fixed | 1.3.9 | GO-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.
- containerd: affected: < 1.3.9, >= 1.4.0, < 1.4.3
Vendor advisories:
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://www.debian.org/security/2021/dsa-4865 (vendor-advisory)
- https://security.gentoo.org/glsa/202105-33 (vendor-advisory)
References
- https://github.com/containerd/containerd/security/advisories/GHSA-36xw-fx78-c5r4
- https://github.com/containerd/containerd/commit/4a4bb851f5da563ff6e68a83dc837c7699c469ad
- https://github.com/containerd/containerd/releases/tag/v1.4.3
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LNKXLOLZWO5FMAPX63ZL7JNKTNNT5NQD/
- https://www.debian.org/security/2021/dsa-4865
- https://security.gentoo.org/glsa/202105-33
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.