6.1
MEDIUM
CVE-2020-15157
Containerd Credential Leaking Vulnerability
Description

In containerd (an industry-standard container runtime) before version 1.2.14 there is a credential leaking vulnerability. If a container image manifest in the OCI Image format or Docker Image V2 Schema 2 format includes a URL for the location of a specific image layer (otherwise known as a “foreign layer”), the default containerd resolver will follow that URL to attempt to download it. In v1.2.x but not 1.3.0 or later, the default containerd resolver will provide its authentication credentials if the server where the URL is located presents an HTTP 401 status code along with registry-specific HTTP headers. If an attacker publishes a public image with a manifest that directs one of the layers to be fetched from a web server they control and they trick a user or system into pulling the image, they can obtain the credentials used for pulling that image. In some cases, this may be the user's username and password for the registry. In other cases, this may be the credentials attached to the cloud virtual instance which can grant access to other cloud resources in the account. The default containerd resolver is used by the cri-containerd plugin (which can be used by Kubernetes), the ctr development tool, and other client programs that have explicitly linked against it. This vulnerability has been fixed in containerd 1.2.14. containerd 1.3 and later are not affected. If you are using containerd 1.3 or later, you are not affected. If you are using cri-containerd in the 1.2 series or prior, you should ensure you only pull images from trusted sources. Other container runtimes built on top of containerd but not using the default resolver (such as Docker) are not affected.

INFO

Published Date :

Oct. 16, 2020, 5:15 p.m.

Last Modified :

Nov. 21, 2024, 5:04 a.m.

Remotely Exploitable :

Yes !

Impact Score :

4.0

Exploitability Score :

1.6
Public PoC/Exploit Available at Github

CVE-2020-15157 has a 9 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-15157 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.

ID Vendor Product Action
1 Canonical ubuntu_linux
1 Debian debian_linux
1 Linuxfoundation containerd
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-15157.

URL Resource
https://github.com/containerd/containerd/releases/tag/v1.2.14 Third Party Advisory
https://github.com/containerd/containerd/security/advisories/GHSA-742w-89gc-8m9c Third Party Advisory
https://usn.ubuntu.com/4589-1/ Third Party Advisory
https://usn.ubuntu.com/4589-2/ Third Party Advisory
https://www.debian.org/security/2021/dsa-4865 Third Party Advisory
https://github.com/containerd/containerd/releases/tag/v1.2.14 Third Party Advisory
https://github.com/containerd/containerd/security/advisories/GHSA-742w-89gc-8m9c Third Party Advisory
https://usn.ubuntu.com/4589-1/ Third Party Advisory
https://usn.ubuntu.com/4589-2/ Third Party Advisory
https://www.debian.org/security/2021/dsa-4865 Third Party Advisory

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).

📚 A curated list of awesome Docker security resources

awesome cve docker exp poc rce

Updated: 2 weeks, 4 days ago
1 stars 0 fork 0 watcher
Born at : Nov. 24, 2024, 9:07 a.m. This repo has been linked 2 different CVEs too.

Each container also gets its own network stack, meaning that a container doesn't get privileged access to the sockets or interfaces of another container. Of course, if the host system is setup accordingly, containers can interact with each other through their respective network interfaces just like they can interact with external hosts.

docker security

Updated: 5 months, 2 weeks ago
0 stars 0 fork 0 watcher
Born at : June 17, 2024, 1:58 p.m. This repo has been linked 2 different CVEs too.

A curated list of awesome Docker security resources

Updated: 7 months, 3 weeks ago
0 stars 0 fork 0 watcher
Born at : April 30, 2024, 1:45 a.m. This repo has been linked 2 different CVEs too.

⚙ DevSecOps Kubernetes Playground ("A Hacker's Guide to Kubernetes")

Dockerfile Shell Ruby Smarty Jinja HCL

Updated: 2 weeks, 4 days ago
16 stars 2 fork 2 watcher
Born at : July 1, 2022, 7:12 a.m. This repo has been linked 57 different CVEs too.

None

Updated: 2 years, 9 months ago
0 stars 0 fork 0 watcher
Born at : March 16, 2022, 2:26 p.m. This repo has been linked 2 different CVEs too.

None

Updated: 3 months, 3 weeks ago
42 stars 8 fork 8 watcher
Born at : Sept. 1, 2021, 2:31 p.m. This repo has been linked 8 different CVEs too.

📚 A curated list of awesome Docker security resources

Updated: 2 weeks, 4 days ago
645 stars 94 fork 94 watcher
Born at : July 20, 2020, 11:26 a.m. This repo has been linked 2 different CVEs too.

This repository contain any information that can be used to hack Kubernetes

Updated: 1 month ago
100 stars 16 fork 16 watcher
Born at : March 8, 2020, 4:55 p.m. This repo has been linked 8 different CVEs too.

🐛 A list of writeups from the Google VRP Bug Bounty program

Python Dockerfile

Updated: 2 weeks, 2 days ago
1169 stars 188 fork 188 watcher
Born at : Jan. 15, 2020, 6:04 p.m. This repo has been linked 5 different CVEs too.

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-15157 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2020-15157 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/releases/tag/v1.2.14
    Added Reference https://github.com/containerd/containerd/security/advisories/GHSA-742w-89gc-8m9c
    Added Reference https://usn.ubuntu.com/4589-1/
    Added Reference https://usn.ubuntu.com/4589-2/
    Added Reference https://www.debian.org/security/2021/dsa-4865
  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • Reanalysis by [email protected]

    Nov. 18, 2021

    Action Type Old Value New Value
    Added CWE NIST CWE-522
  • Modified Analysis by [email protected]

    Mar. 17, 2021

    Action Type Old Value New Value
    Removed CVSS V2 NIST (AV:N/AC:M/Au:N/C:P/I:N/A:N)
    Added CVSS V2 NIST (AV:N/AC:H/Au:N/C:P/I:N/A:N)
    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: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]
  • Initial Analysis by [email protected]

    Oct. 29, 2020

    Action Type Old Value New Value
    Added CVSS V2 Metadata Victim must voluntarily interact with attack mechanism
    Added CVSS V2 NIST (AV:N/AC:M/Au:N/C:P/I:N/A:N)
    Added CVSS V3.1 NIST AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:N/A:N
    Changed Reference Type https://github.com/containerd/containerd/releases/tag/v1.2.14 No Types Assigned https://github.com/containerd/containerd/releases/tag/v1.2.14 Third Party Advisory
    Changed Reference Type https://github.com/containerd/containerd/security/advisories/GHSA-742w-89gc-8m9c No Types Assigned https://github.com/containerd/containerd/security/advisories/GHSA-742w-89gc-8m9c Third Party Advisory
    Changed Reference Type https://usn.ubuntu.com/4589-1/ No Types Assigned https://usn.ubuntu.com/4589-1/ Third Party Advisory
    Changed Reference Type https://usn.ubuntu.com/4589-2/ No Types Assigned https://usn.ubuntu.com/4589-2/ Third Party Advisory
    Added CPE Configuration OR *cpe:2.3:a:linuxfoundation:containerd:*:*:*:*:*:*:*:* versions from (including) 1.2.0 up to (excluding) 1.2.14 *cpe:2.3:a:linuxfoundation:containerd:1.3.0:-:*:*:*:*:*:* *cpe:2.3:a:linuxfoundation:containerd:1.3.0:beta0:*:*:*:*:*:* *cpe:2.3:a:linuxfoundation:containerd:1.3.0:beta1:*:*:*:*:*:* *cpe:2.3:a:linuxfoundation:containerd:1.3.0:beta2:*:*:*:*:*:* *cpe:2.3:a:linuxfoundation:containerd:1.3.0:rc0:*:*:*:*:*:* *cpe:2.3:a:linuxfoundation:containerd:1.3.0:rc1:*:*:*:*:*:* *cpe:2.3:a:linuxfoundation:containerd:1.3.0:rc2:*:*:*:*:*:* *cpe:2.3:a:linuxfoundation:containerd:1.3.0:rc3:*:*:*:*:*:*
    Added CPE Configuration OR *cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:* *cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:* *cpe:2.3:o:canonical:ubuntu_linux:20.04:*:*:*:lts:*:*:*
  • CVE Modified by [email protected]

    Oct. 20, 2020

    Action Type Old Value New Value
    Added Reference https://usn.ubuntu.com/4589-2/ [No Types Assigned]
  • CVE Modified by [email protected]

    Oct. 20, 2020

    Action Type Old Value New Value
    Added Reference https://usn.ubuntu.com/4589-1/ [No Types Assigned]
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
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-15157 is associated with the following CWEs:

Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

0.30 }} -0.06%

score

0.69272

percentile

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability