CVE-2021-21334
environment variable leak
Reported by github_m · Published March 10, 2021
github.com/containerd/containerd is fixed in v1.3.10, 1.4.4 and 1.3.10 (Go Modules)
In containerd (an industry-standard container runtime) before versions 1.3.10 and 1.4.4, containers launched through containerd's CRI implementation (through Kubernetes, crictl, or any other pod/container client that uses the containerd CRI service) that share the same image may receive incorrect environment variables, including values that are defined for other containers. If the affected containers have different security contexts, this may allow sensitive information to be unintentionally shared. If you are not using containerd's CRI implementation (through one of the mechanisms described above), you are not vulnerable to this issue. If you are not launching multiple containers or Kubernetes pods from the same image which have different environment variables, you are not vulnerable to this issue. If you are not launching multiple containers or Kubernetes pods from the same image in rapid succession, you have reduced likelihood of being vulnerable to this issue This vulnerability has been fixed in containerd 1.3.10 and containerd 1.4.4. Users should update to these versions.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| github.com/containerd/containerd | Go Modules | v1.3.10, 1.4.4, 1.3.10 |
| ctop | Chainguard | 0.7.7-r13 |
| k3s | Alpine | 1.20.5.1-r0 |
| ctop | Wolfi | 0.7.7-r13 |
| containerd | Arch Linux | 1.4.4-1 |
| containerd | Ubuntu:18.04:LTS | 1.5.2-0ubuntu1~18.04.2 |
| containerd | linuxfoundation | 1.4.4, 1.3.10 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| containerd | containerd | < 1.3.10, >= 1.4.0, < 1.4.4 |
| chainguard | ctop | 0 |
| alpine | k3s | 0 |
| wolfi | ctop | 0 |
| arch | containerd | 0 |
| containerd | containerd | 0, 1.4.0 |
| github.com | containerd/containerd | 0, 1.4.0 |
| alpine | containerd | 0 |
Timeline
- Mar 5, 2021 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Jan 30, 2026 CVE Updated
- Mar 7, 2026 Distribution Patch (4 in total, the first dated here)
- Mar 7, 2026 Security Advisory (8 in total, the first dated here)
- Aug 26, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2021-21334
vulnetix vdb fixes CVE-2021-21334
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-21334/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_CONFIRM
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_MISC
- FEDORA-2021-470fa24f5b vendor-advisoryx_refsource_FEDORA
- FEDORA-2021-10ce8fcbf1 vendor-advisoryx_refsource_FEDORA
- FEDORA-2021-f049305892 vendor-advisoryx_refsource_FEDORA
- GLSA-202105-33 vendor-advisoryx_refsource_GENTOO
- https://nvd.nist.gov/vuln/detail/CVE-2021-21334 advisory