Miggo Logo

CVE-2021-21334: containerd environment variable leak

6.3

CVSS Score
3.1

Basic Information

EPSS Score
0.43586%
Published
1/31/2024
Updated
1/31/2024
KEV Status
No
Technology
TechnologyGo

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
github.com/containerd/containerdgo>= 1.4.0, < 1.4.41.4.4
github.com/containerd/containerdgo< 1.3.101.3.10

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability was fixed in containerd/cri#1628 and #1629 by modifying environment variable handling in container creation. The commit diffs show changes to environment variable initialization in container spec generation, specifically ensuring environment variables are appended to a new slice rather than potentially reusing a previous container's environment. The CVE description directly matches this code change pattern where environment variables from different containers could be mixed when sharing the same image.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

## Imp**t *ont*in*rs l*un**** t*rou** *ont*in*r*'s *RI impl*m*nt*tion (t*rou** Ku**rn*t*s, *ri*tl, or *ny ot**r po*/*ont*in*r *li*nt t**t us*s t** *ont*in*r* *RI s*rvi**) t**t s**r* t** s*m* im*** m*y r***iv* in*orr**t *nvironm*nt v*ri**l*s, in*lu*i

Reasoning

T** vuln*r**ility w*s *ix** in *ont*in*r*/*ri#**** *n* #**** *y mo*i*yin* *nvironm*nt v*ri**l* **n*lin* in *ont*in*r *r**tion. T** *ommit *i**s s*ow ***n**s to *nvironm*nt v*ri**l* initi*liz*tion in *ont*in*r sp** **n*r*tion, sp**i*i**lly *nsurin* *n
CVE-2021-21334: containerd CRI Env Var Leak | Miggo