CVE-2021-21334: environment variable leak
Vulnerability summary
CVE-2021-21334 is a medium (CVSS 6.3) Exposure of Resource to Wrong Sphere vulnerability in containerd. EPSS estimates a 1.95% chance of exploitation in the next 30 days, higher than 80.2% of scored vulnerabilities.
Not severe (CVSS 6.3, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 5 · Related 7Timeline
- 10-03-2021PublishedVulnerability first disclosed.
- 03-08-2024Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
9 scores · 8 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated6.3MediumCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N
- OSV · DebianEcosystem advisory · calculated6.3MediumCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N
- OSV · WolfiEcosystem advisory · calculated6.3MediumCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N
- OSV · GoEcosystem advisory · calculated6.3MediumCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N
- OSV · ChainguardEcosystem advisory · calculated6.3MediumCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N
- NVDNIST6.3MediumCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N
- OSV · AlpineEcosystem advisory · calculated6.3MediumCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N
EPSS trend
Probability
1.95%
Chance of exploitation in the next 30 days
Percentile
80%
Versus all other CVEs
30-day change
Decrease -0.08 pp
From 2.03% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Alpine2 products
- containerd≥ 1.4.0, < 1.4.4-r0
- k3s< 1.20.5.1-r0
Mageia2 products
- docker-containerd< 1.4.4-1.mga7
- docker-containerd< 1.4.4-1.mga8
Chainguard1 product
- ctop< 0.7.7-r13
Containerd1 product
- containerd< 1.3.10 | ≥ 1.4.0, < 1.4.4
Debian1 product
- containerd< 1.4.4~ds1-1
Fedoraproject1 product
- fedoraEOL33 | 34
Github.com/containerd1 product
- containerd≥ 1.4.0, < 1.4.4 | < 1.3.10
Linuxfoundation1 product
- containerd< 1.3.10 | ≥ 1.4.0, < 1.4.4
Ubuntu1 product
- containerdAll versions (No fix recorded) | < 1.5.2-0ubuntu1~18.04.2 | < 1.3.3-0ubuntu2.3
Wolfi1 product
- ctop< 0.7.7-r13
10 vendors · 12 products
References
24 links- github.com/containerd/containerd/security/advisories/GHSA-6g2q-w5j3-fwh4X Refsource CONFIRMREPORTAdvisoryWEBThird Party Advisory
- github.com/containerd/containerd/releases/tag/v1.4.4X Refsource MISCAdvisoryWEBRelease NotesThird Party Advisory
- github.com/containerd/containerd/releases/tag/v1.3.10X Refsource MISCAdvisoryWEBRelease NotesThird Party Advisory
- github.com/containerd/containerd/commit/05f951a3781f4f2c1911b05e61c160e9c30eaa8eX Refsource MISCFIXWEBPatchThird Party Advisory