CVE-2021-21334: environment variable leak
Noroxi assessment
Priority: Monitor (action score 26/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Probability of exploitation in the next 30 days: 1.9% (FIRST EPSS); higher than 80.4% of all records.
- Anyone who can reach it over the internet can trigger it. A low-privileged account is enough. No user action is required. Special conditions such as timing or configuration are required.
- Fixed version: containerd (Alpine:v3.12) 1.4.4-r0; k3s (Alpine:v3.14) 1.20.5.1-r0; containerd (Debian:12) 1.4.4~ds1-1.
- Mentioned 1 time in Turkish national cyber security advisories (siberguvenlik.gov.tr).
Low priority for now. Upgrade to containerd (Alpine:v3.12) 1.4.4-r0; k3s (Alpine:v3.14) 1.20.5.1-r0; containerd (Debian:12) 1.4.4~ds1-1 or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
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.
- Published
- Mar 10, 2021
- Updated
- Jun 16, 2026
- EPSS
- 1.9% · 80th percentile
- CWE
- CWE-668
Report tools
Action score
26
Low priority for now.
- CVSS
- 25 / 40 · 6.3 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 1 / 30 · 1.9%
CNA vs NVD score
- NVD
- 6.3
- CNA · GitHub_M
- 6.3
- agree
The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Is your version affected? Check itNoroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| linuxfoundation | containerd | cpe:2.3:a:linuxfoundation:containerd |
| fedoraproject | fedora | cpe:2.3:o:fedoraproject:fedora |
Using containerd? Add it to your stack and be the first to know about CVEs like this one. (Docker)
Versions reported by the vendor
Affected version ranges reported by the assigning authority (GitHub_M). Independent of NVD's CPE analysis and usually ahead of it.
containerd containerd
- < 1.3.10, >= 1.4.0, < 1.4.4affected
Affected versions · NVD (4)
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- fedoraproject fedora33
- fedoraproject fedora34
- linuxfoundation containerdbefore 1.3.10
- linuxfoundation containerd1.4.0 and later · before 1.4.4
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Alpine:v3.12 | containerd | from 1.4.0 · before 1.4.4-r0 | 1.4.4-r0 |
| Alpine:v3.14 | k3s | before 1.20.5.1-r0 | 1.20.5.1-r0 |
| Debian:12 | containerd | before 1.4.4~ds1-1 | 1.4.4~ds1-1 |
| Go | github.com/containerd/containerd | from 1.4.0 · before 1.4.4 | 1.4.4 |
| Go | github.com/containerd/containerd | before 1.3.10 | 1.3.10 |
| openSUSE:Leap 15.2 | containerd | before 1.4.4-lp152.2.6.1 | 1.4.4-lp152.2.6.1 |
| openSUSE:Leap 15.2 | docker | before 20.10.6_ce-lp152.2.12.1 | 20.10.6_ce-lp152.2.12.1 |
| openSUSE:Leap 15.2 | runc | before 1.0.0~rc93-lp152.2.3.1 | 1.0.0~rc93-lp152.2.3.1 |
| openSUSE:Leap 15.3 | containerd | before 1.4.4-5.32.1 | 1.4.4-5.32.1 |
| openSUSE:Leap 15.3 | docker | before 20.10.6_ce-6.49.3 | 20.10.6_ce-6.49.3 |
| openSUSE:Leap 15.3 | runc | before 1.0.0~rc93-1.14.2 | 1.0.0~rc93-1.14.2 |
| openSUSE:Tumbleweed | containerd | before 1.4.8-2.2 | 1.4.8-2.2 |
| SUSE:Linux Enterprise Module for Containers 12 | containerd | before 1.4.4-16.38.1 | 1.4.4-16.38.1 |
| SUSE:Linux Enterprise Module for Containers 12 | docker | before 20.10.6_ce-98.66.1 | 20.10.6_ce-98.66.1 |
| SUSE:Linux Enterprise Module for Containers 12 | runc | before 1.0.0~rc93-16.8.1 | 1.0.0~rc93-16.8.1 |
| SUSE:Linux Enterprise Module for Containers 15 SP2 | containerd | before 1.4.4-5.32.1 | 1.4.4-5.32.1 |
| SUSE:Linux Enterprise Module for Containers 15 SP2 | docker | before 20.10.6_ce-6.49.3 | 20.10.6_ce-6.49.3 |
| SUSE:Linux Enterprise Module for Containers 15 SP2 | runc | before 1.0.0~rc93-1.14.2 | 1.0.0~rc93-1.14.2 |
Same product
linuxfoundation: all recordsOther highest-scoring records for the same primary product.
- CVE-2022-23648Insecure handling of image volumes in containerd CRI plugin38Monitor
- CVE-2026-53488containerd CRI plugin: — image-config `LABEL` flows to restart-monitor `binary://` logger: host-root command execution from an image pull37Monitor
- CVE-2021-43816Improper Preservation of Permissions in containerd37Monitor
Published before and after this one in the same product
- ← EarlierCVE-2020-15157Oct 16, 2020 · containerd can be coerced into leaking credentials during image pull25Monitor
- ← EarlierCVE-2020-15257Nov 30, 2020 · containerd-shim API Exposed to Host Network Containers21Monitor
- Later →CVE-2021-32760Jul 19, 2021 · Archive package allows chmod of file outside of unpack target directory25Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| alpine:containerd | 1.4.4-r0 · Alpine:v3.12 | Package registry (OSV) |
| alpine:k3s | 1.20.5.1-r0 · Alpine:v3.14 | Package registry (OSV) |
| debian:containerd | 1.4.4~ds1-1 · Debian:12 | Package registry (OSV) |
| Go:github.com/containerd/containerd | 1.3.10 | Package registry (OSV) |
| Go:github.com/containerd/containerd | 1.4.4 | Package registry (OSV) |
| opensuse:containerd | 1.4.4-lp152.2.6.1 · openSUSE:Leap 15.2 | Package registry (OSV) |
| opensuse:docker | 20.10.6_ce-lp152.2.12.1 · openSUSE:Leap 15.2 | Package registry (OSV) |
| opensuse:runc | 1.0.0~rc93-lp152.2.3.1 · openSUSE:Leap 15.2 | Package registry (OSV) |
| suse:containerd | 1.4.4-16.38.1 · SUSE:Linux Enterprise Module for Containers 12 | Package registry (OSV) |
| suse:docker | 20.10.6_ce-98.66.1 · SUSE:Linux Enterprise Module for Containers 12 | Package registry (OSV) |
| suse:runc | 1.0.0~rc93-16.8.1 · SUSE:Linux Enterprise Module for Containers 12 | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
National notice (Türkiye Cybersecurity Directorate / USOM)
Official security notices citing this record; remediation advice is on the agency's page.
- TR-23-0309 · May 31, 2023(IBM Güvenlik Bildirimi)
Not on record for this CVE: EPSS history · researcher credit · variant or chain candidate · public bounty program.
Technical details
Attack conditions
- Anyone who can reach it over the internet can trigger it.
- A low-privileged account is enough.
- No user action is required.
- Special conditions such as timing or configuration are required.
If successful
- Confidentiality
- high · data can be read
- Integrity
- none
- Availability
- none
Impact can extend beyond the vulnerable component (scope changes).
- Attack vector
- Network
- Attack complexity
- High
- Privileges required
- Low
- User interaction
- None
- Scope
- Changed
- Confidentiality impact
- High
- Integrity impact
- None
- Availability impact
- None
Weakness class (CWE)
CWE-668 · Exposure of Resource to Wrong SphereCVSS vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N
nvd-primary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
MITRE has no CAPEC/ATT&CK mapping for this CWE.
Change log (1)
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (7 more)Show less
- github.com/containerd/containerd/releases/tag/v1.3.10
- github.com/containerd/containerd/releases/tag/v1.4.4
- github.com/containerd/containerd/security/advisories/GHSA-6g2q-w5j3-fwh4
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KUE2Z2ZUWBHRU36ZGBD2YSJCYB6ELPXE/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QIBPKSX5IOWPM3ZPFB3JVLXWDHSZTTWT/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VTXHA5JOWQRCCUZH7ZQBEYN6KZKJEYSD/
- security.gentoo.org/glsa/202105-33
Vendor advisories and official records. Exploit/PoC links are deliberately left out.