CWE
522 200
Advisory Published
CVE Published
CVE Published
Updated

CVE-2020-15157: containerd can be coerced into leaking credentials during image pull

First published: Wed Oct 14 2020(Updated: )

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.

Credit: security-advisories@github.com security-advisories@github.com

Affected SoftwareAffected VersionHow to fix
redhat/openshift<0:4.7.0-202102060108.p0.git.97095.7271b90.el8
0:4.7.0-202102060108.p0.git.97095.7271b90.el8
Linuxfoundation Containerd>=1.2.0<1.2.14
Linuxfoundation Containerd=1.3.0
Linuxfoundation Containerd=1.3.0-beta0
Linuxfoundation Containerd=1.3.0-beta1
Linuxfoundation Containerd=1.3.0-beta2
Linuxfoundation Containerd=1.3.0-rc0
Linuxfoundation Containerd=1.3.0-rc1
Linuxfoundation Containerd=1.3.0-rc2
Linuxfoundation Containerd=1.3.0-rc3
Canonical Ubuntu Linux=16.04
Canonical Ubuntu Linux=18.04
Canonical Ubuntu Linux=20.04
Debian Debian Linux=10.0
redhat/containerd<1.2.14
1.2.14
redhat/containerd<1.3.0
1.3.0
ubuntu/containerd<1.2.6-0ubuntu1~16.04.4
1.2.6-0ubuntu1~16.04.4
ubuntu/docker.io<19.03.6-0ubuntu1~18.04.2
19.03.6-0ubuntu1~18.04.2
ubuntu/docker.io<19.03.8-0ubuntu1.20.04.1
19.03.8-0ubuntu1.20.04.1
ubuntu/docker.io<18.09.7-0ubuntu1~16.04.6
18.09.7-0ubuntu1~16.04.6
debian/containerd
1.4.13~ds1-1~deb11u4
1.4.13~ds1-1~deb11u2
1.6.20~ds1-1
1.7.18~ds2-1
debian/docker.io
20.10.5+dfsg1-1+deb11u2
20.10.24+dfsg1-1
26.1.4+dfsg1-9
26.1.4+dfsg3-1

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Parent vulnerabilities

(Appears in the following advisories)

Frequently Asked Questions

  • What is CVE-2020-15157?

    CVE-2020-15157 is a vulnerability found in containerd where credentials may be leaked during an image pull.

  • What is the severity of CVE-2020-15157?

    The severity of CVE-2020-15157 is medium, with a CVSS score of 6.1.

  • Which software versions are affected by CVE-2020-15157?

    Containerd versions before 1.2.14 and 1.3.0 are affected by CVE-2020-15157.

  • How can I fix CVE-2020-15157?

    To fix CVE-2020-15157, upgrade containerd to version 1.2.14 or higher.

  • Where can I find more information about CVE-2020-15157?

    You can find more information about CVE-2020-15157 at the following references: [link1], [link2], [link3].

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2024 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203