CVE-2020-15257
containerd-shim API Exposed to Host Network Containers
Check your servers for CVE-2020-15257
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2020-15257 affects containerd, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
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.
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- changed: the damage reaches other components, such as the host of a container or other users
- Impact
- confidentiality low, integrity low, availability none: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 3.12%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 88.1% of all scored CVEs. Scores of 1 Dec 2026.
Weakness
- CWE-669 Incorrect Resource Transfer Between Spheres
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| containerd |
affected < 1.3.9 affected >= 1.4.0, < 1.4.3
|
Is my server affected?
Find the installed version of containerd and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i containerd
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2020-15257 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2020-15257RHEL, Rocky, Alma, Fedora
rpm -q containerd
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2020-15257Alpine
apk list --installed | grep -i containerdWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2020-15257
trivy image --scanners vuln IMAGE | grep CVE-2020-15257
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
- https://github.com/containerd/containerd/security/advisories/GHSA-36xw-fx78-c5r4 github.com
- FEDORA-2020-baeb8dbaea lists.fedoraproject.org · vendor advisory
- DSA-4865 debian.org · vendor advisory
- GLSA-202105-33 security.gentoo.org · vendor advisory
Other references
- https://github.com/containerd/containerd/commit/4a4bb851f5da563ff6e68a83dc837c7699c469ad github.com
- https://github.com/containerd/containerd/releases/tag/v1.4.3 github.com
Source: the record CVE-2020-15257 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse