CVE-2020-15157:
containerd v1.2.x can be coerced into leaking credentials during image pull
6.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.68267%
CWE
Published
2/11/2022
Updated
2/1/2023
KEV Status
No
Technology
Go
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:N/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
github.com/containerd/containerd | go | < 1.2.14 | 1.2.14 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from how containerd
v1.2.x handled foreign layer URLs in image manifests. The commit diff shows critical changes in dockerFetcher.Fetch
where authentication was explicitly disabled for manifest-provided URLs (db.auth = nil
). Before this fix, the code would use the resolver's authentication when fetching from these external URLs, particularly when servers returned 401 responses with registry-specific headers. The test cases added in fetcher_test.go
validate()
that no authorization headers are sent for manifest-specified URLs, confirming the vulnerable behavior was in the original Fetch
implementation.