Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2020-15157

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

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2020-15157
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 10:53 UTC · Revision 1

Source evidence

CVE-2020-15157

core-osv · Original source

Published 16 Oct 2020, 17:15 UTC

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

osv:CVE-2020-15157
Complete source record
{
  "id": "bef5caf7e115531c6676d80024de7e56b4caa64c85292837426f7db186ecffbe",
  "url": "https://osv.dev/vulnerability/CVE-2020-15157",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2020-15157",
    "summary": "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 ",
    "evidence": "osv:CVE-2020-15157",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2020-15157",
      "aliases": [
        "CVE-2020-15157",
        "GHSA-742w-89gc-8m9c",
        "GO-2022-0803"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:N/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/containerd/containerd",
              "type": "GIT",
              "events": [
                {
                  "introduced": "c4446665cb9c30056f4998ed953e6d4ff22c7c39"
                },
                {
                  "fixed": "f8777f13022dd16c2a339d621bb55465fe603b19"
                },
                {
                  "introduced": "36cf5b690dcc00ff0f34ff7799209050c3d0c59a"
                },
                {
                  "last_affected": "36cf5b690dcc00ff0f34ff7799209050c3d0c59a"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:linuxfoundation:containerd:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "1.2.0"
                      },
                      {
                        "fixed": "1.2.14"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:linuxfoundation:containerd:1.3.0:-:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "1.3.0-NA"
                      },
                      {
                        "last_affected": "1.3.0-NA"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "range": [
                      {
                        "fixed": "f8777f13022dd16c2a339d621bb55465fe603b19"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "v1.2.14"
                  }
                ]
              }
            }
          ],
          "versions": [
            "1.3.0-NA",
            "v1.2.13",
            "v1.2.12",
            "v1.2.11",
            "v1.3.0",
            "v1.2.10",
            "v1.2.9",
            "v1.2.8",
            "v1.2.7",
            "v1.2.6",
            "v1.2.5",
            "v1.2.4",
            "v1.2.3",
            "v1.2.2",
            "v1.2.1",
            "v1.2.1-rc.0",
            "v1.2.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-15157.json"
          }
        }
      ],
      "modified": "2026-10-20T10:51:56.029228603Z",
      "provider": "osv",
      "references": [
        "https://github.com/containerd/containerd/releases/tag/v1.2.14",
        "https://github.com/containerd/containerd/security/advisories/GHSA-742w-89gc-8m9c",
        "https://usn.ubuntu.com/4589-1/",
        "https://usn.ubuntu.com/4589-2/",
        "https://www.debian.org/security/2021/dsa-4865"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "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:*:*:*"
            ],
            "vendor_product": "canonical:ubuntu_linux",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "16.04"
                  },
                  {
                    "last_affected": "16.04"
                  },
                  {
                    "introduced": "18.04"
                  },
                  {
                    "last_affected": "18.04"
                  },
                  {
                    "introduced": "20.04"
                  },
                  {
                    "last_affected": "20.04"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "debian:debian_linux",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "10.0"
                  },
                  {
                    "last_affected": "10.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "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:*:*:*:*:*:*"
            ],
            "vendor_product": "linuxfoundation:containerd",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "1.3.0-beta0"
                  },
                  {
                    "last_affected": "1.3.0-beta0"
                  },
                  {
                    "introduced": "1.3.0-beta1"
                  },
                  {
                    "last_affected": "1.3.0-beta1"
                  },
                  {
                    "introduced": "1.3.0-beta2"
                  },
                  {
                    "last_affected": "1.3.0-beta2"
                  },
                  {
                    "introduced": "1.3.0-rc0"
                  },
                  {
                    "last_affected": "1.3.0-rc0"
                  },
                  {
                    "introduced": "1.3.0-rc1"
                  },
                  {
                    "last_affected": "1.3.0-rc1"
                  },
                  {
                    "introduced": "1.3.0-rc2"
                  },
                  {
                    "last_affected": "1.3.0-rc2"
                  },
                  {
                    "introduced": "1.3.0-rc3"
                  },
                  {
                    "last_affected": "1.3.0-rc3"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2020-15157",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 383136,
  "published_at": "2020-10-16T17:15:11.87+00:00"
}