Miggo Logo

CVE-2020-15157:
containerd v1.2.x can be coerced into leaking credentials during image pull

6.1

CVSS Score
3.1

Basic Information

EPSS Score
0.68267%
Published
2/11/2022
Updated
2/1/2023
KEV Status
No
Technology
TechnologyGo

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:N/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
github.com/containerd/containerdgo< 1.2.141.2.14

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot 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.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

## Imp**t I* * *ont*in*r im*** m*ni**st in t** O*I Im*** *orm*t or *o*k*r Im*** V* S***m* * *orm*t in*lu**s * URL *or t** lo**tion o* * sp**i*i* im*** l*y*r (ot**rwis* known *s * “*or*i*n l*y*r”), t** ****ult *ont*in*r* r*solv*r will *ollow t**t URL

Reasoning

T** vuln*r**ility st*ms *rom *ow `*ont*in*r*` v*.*.x **n*l** *or*i*n l*y*r URLs in im*** m*ni**sts. T** *ommit *i** s*ows *riti**l ***n**s in `*o*k*r**t***r.**t**` w**r* *ut**nti**tion w*s *xpli*itly *is**l** *or m*ni**st-provi*** URLs (`**.*ut* = ni