# CVE-2021-21334: containerd environment variable leak

Source: https://junglewise.ai/threats/cve-2021-21334-containerd-environment-variable-leak  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2024-01-31  
License: CC BY 4.0 with a link back

CVE-2021-21334 · Severity: low · CVSS 3.1 · Published 2024-01-31

containerd environment variable leak

Technologies: [github.com/containerd/containerd (Go)](https://junglewise.ai/threats/technologies/github-com-containerd-containerd). Vendors: [Go](https://junglewise.ai/threats/vendors/go).

## Quick answers

**Is CVE-2021-21334 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2021-21334 being exploited in the wild.

**How severe is CVE-2021-21334?** Low severity, with a CVSS score of 3.1, published 31 January 2024.

**Which products and versions are affected?** github.com/containerd/containerd (Go) SEMVER:introduced=1.4.0,fixed=1.4.4.

**Is there a fix for CVE-2021-21334?** Yes. github.com/containerd/containerd (Go): upgrade to 1.4.4 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2021-21334?** Check whether you run github.com/containerd/containerd (Go) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- github.com/containerd/containerd (Go): upgrade to 1.4.4 or later

  ```sh
  go get github.com/containerd/containerd@v1.4.4
  ```


## Affected products

- github.com/containerd/containerd (Go) SEMVER:introduced=1.4.0,fixed=1.4.4

## Identifiers

- CVE-2021-21334
- GHSA-6g2q-w5j3-fwh4

## Related threats

- [containerd layer unpack denial of service via opaque whiteouts](https://junglewise.ai/threats/cve-2026-95838-containerd-unpack-dos-via-repeated-opaque-whiteouts)
- [containerd CRI plugin checkpoint restore privilege bypass](https://junglewise.ai/threats/cve-2026-95837-containerd-cri-plugin-checkpoint-restore-bypasses-destination)
- [Containerd image-pull denial of service via OCI index graph amplification](https://junglewise.ai/threats/cve-2026-53493-containerd-image-pull-denial-of-service-via-oci-index-graph)
- [containerd CRI ExecSync goroutine leak denial of service](https://junglewise.ai/threats/cve-2026-53495-containerd-cri-execsync-goroutine-leak-denial-of-service)
- [containerd CDI annotation smuggling during CRI checkpoint restore](https://junglewise.ai/threats/cve-2026-53492-containerd-cdi-annotation-smuggling-during-cri-checkpoint-restore)
