CVE-2020-15257
Containerd Privilege Escalation across Network Namespaces
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.
INFO
Published Date :
Dec. 1, 2020, 3:15 a.m.
Last Modified :
Nov. 21, 2024, 5:05 a.m.
Source :
[email protected]
Remotely Exploitable :
No
Impact Score :
2.7
Exploitability Score :
2.0
Public PoC/Exploit Available at Github
CVE-2020-15257 has a 29 public PoC/Exploit
available at Github.
Go to the Public Exploits
tab to see the list.
Affected Products
The following products are affected by CVE-2020-15257
vulnerability.
Even if cvefeed.io
is aware of the exact versions of the
products
that
are
affected, the information is not represented in the table below.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2020-15257
.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Recording Framework for CAShift
Shell Python HTML Go Dockerfile C
整理容器逃逸相关的漏洞和exploits.
Makefile C Python Dockerfile Shell Go
None
None
Go Python
bounty collection
Shell Python Dockerfile Ruby JavaScript ASP.NET Classic ASP HTML PHP Jupyter Notebook
容器安全漏洞的分析与复现
Go Shell C Dockerfile
None
Shell Python
详细的记录了一些Docker漏洞的原理、环境搭建、漏洞复现
网上阅读过的文章记录
None
Collect relevant poc, exp, tools and other private activities according to the public data to improve the work efficiency.
Python C++ PHP Rich Text Format C Ruby Perl CMake Assembly Shell
⚙ DevSecOps Kubernetes Playground ("A Hacker's Guide to Kubernetes")
Dockerfile Shell Ruby Smarty Jinja HCL
None
安全类各家文库大乱斗
HTML CSS JavaScript Go Python Shell C
None
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2020-15257
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2020-15257
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 21, 2024
Action Type Old Value New Value Added Reference https://github.com/containerd/containerd/commit/4a4bb851f5da563ff6e68a83dc837c7699c469ad Added Reference https://github.com/containerd/containerd/releases/tag/v1.4.3 Added Reference https://github.com/containerd/containerd/security/advisories/GHSA-36xw-fx78-c5r4 Added Reference https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LNKXLOLZWO5FMAPX63ZL7JNKTNNT5NQD/ Added Reference https://security.gentoo.org/glsa/202105-33 Added Reference https://www.debian.org/security/2021/dsa-4865 -
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
CVE Modified by [email protected]
Nov. 07, 2023
Action Type Old Value New Value Added Reference GitHub, Inc. https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LNKXLOLZWO5FMAPX63ZL7JNKTNNT5NQD/ [No types assigned] Removed Reference GitHub, Inc. https://lists.fedoraproject.org/archives/list/[email protected]/message/LNKXLOLZWO5FMAPX63ZL7JNKTNNT5NQD/ -
Modified Analysis by [email protected]
Jan. 01, 2022
Action Type Old Value New Value Changed Reference Type https://security.gentoo.org/glsa/202105-33 No Types Assigned https://security.gentoo.org/glsa/202105-33 Third Party Advisory -
CVE Modified by [email protected]
May. 26, 2021
Action Type Old Value New Value Added Reference https://security.gentoo.org/glsa/202105-33 [No Types Assigned] -
Modified Analysis by [email protected]
Mar. 17, 2021
Action Type Old Value New Value Changed Reference Type https://lists.fedoraproject.org/archives/list/[email protected]/message/LNKXLOLZWO5FMAPX63ZL7JNKTNNT5NQD/ No Types Assigned https://lists.fedoraproject.org/archives/list/[email protected]/message/LNKXLOLZWO5FMAPX63ZL7JNKTNNT5NQD/ Mailing List, Third Party Advisory Changed Reference Type https://www.debian.org/security/2021/dsa-4865 No Types Assigned https://www.debian.org/security/2021/dsa-4865 Third Party Advisory Added CPE Configuration OR *cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:* Added CPE Configuration OR *cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* -
CVE Modified by [email protected]
Feb. 28, 2021
Action Type Old Value New Value Added Reference https://www.debian.org/security/2021/dsa-4865 [No Types Assigned] -
CVE Modified by [email protected]
Dec. 10, 2020
Action Type Old Value New Value Added Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/LNKXLOLZWO5FMAPX63ZL7JNKTNNT5NQD/ [No Types Assigned] -
Initial Analysis by [email protected]
Dec. 08, 2020
Action Type Old Value New Value Added CVSS V2 NIST (AV:L/AC:L/Au:N/C:P/I:P/A:N) Added CVSS V3.1 NIST AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N Changed Reference Type https://github.com/containerd/containerd/commit/4a4bb851f5da563ff6e68a83dc837c7699c469ad No Types Assigned https://github.com/containerd/containerd/commit/4a4bb851f5da563ff6e68a83dc837c7699c469ad Patch, Third Party Advisory Changed Reference Type https://github.com/containerd/containerd/releases/tag/v1.4.3 No Types Assigned https://github.com/containerd/containerd/releases/tag/v1.4.3 Third Party Advisory Changed Reference Type https://github.com/containerd/containerd/security/advisories/GHSA-36xw-fx78-c5r4 No Types Assigned https://github.com/containerd/containerd/security/advisories/GHSA-36xw-fx78-c5r4 Mitigation, Third Party Advisory Added CWE NIST CWE-669 Added CPE Configuration OR *cpe:2.3:a:linuxfoundation:containerd:*:*:*:*:*:*:*:* versions up to (excluding) 1.3.9 *cpe:2.3:a:linuxfoundation:containerd:*:*:*:*:*:*:*:* versions from (including) 1.4.0 up to (excluding) 1.4.3
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2020-15257
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2020-15257
weaknesses.
Exploit Prediction
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.
0.04 }} 0.00%
score
0.12218
percentile