# CVE-2021-21334: environment variable leak

- Severity: Medium 6.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.95%, higher than 80% of CVEs (2026-12-01)
- Published: 2021-03-10T21:30:18.000Z
- Modified: 2026-09-10T03:50:04.845Z
- Also known as: GHSA-6g2q-w5j3-fwh4
- Weaknesses: CWE-200, CWE-668
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- containerd containerd: < 1.3.10; >= 1.4.0, < 1.4.4
- github.com/containerd/containerd (Go): from 1.4.0 before 1.4.4; before 1.3.10
- linuxfoundation containerd: before 1.3.10; from 1.4.0 before 1.4.4
- fedoraproject fedora: 33; 34

## Every score

- GitHub_M: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N`
- GitHub: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N`
- NVD: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:P/I:N/A:N`

## References

- <https://github.com/containerd/containerd/security/advisories/GHSA-6g2q-w5j3-fwh4> (third-party-advisory, web)
- <https://github.com/containerd/containerd/releases/tag/v1.4.4> (release-notes, third-party-advisory, web)
- <https://github.com/containerd/containerd/releases/tag/v1.3.10> (release-notes, third-party-advisory, web)
- <https://github.com/containerd/containerd/commit/05f951a3781f4f2c1911b05e61c160e9c30eaa8e> (patch, third-party-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KUE2Z2ZUWBHRU36ZGBD2YSJCYB6ELPXE/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QIBPKSX5IOWPM3ZPFB3JVLXWDHSZTTWT/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VTXHA5JOWQRCCUZH7ZQBEYN6KZKJEYSD/> (vendor-advisory)
- <https://security.gentoo.org/glsa/202105-33> (third-party-advisory, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-21334> (advisory)
- <https://github.com/containerd/cri/pull/1628> (web)
- <https://github.com/containerd/cri/pull/1629> (web)
- <https://github.com/containerd/containerd/commit/2d9c8aa4b3f4313982c5c999af57212a1c5d144b> (web)
- <https://github.com/containerd/containerd/commit/cbcb2f57fbe221986f96b552855eb802f63193de> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/KUE2Z2ZUWBHRU36ZGBD2YSJCYB6ELPXE> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QIBPKSX5IOWPM3ZPFB3JVLXWDHSZTTWT> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VTXHA5JOWQRCCUZH7ZQBEYN6KZKJEYSD> (web)

## Sources

- CVE List: [CVE-2021-21334](https://www.cve.org/CVERecord?id=CVE-2021-21334), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-6g2q-w5j3-fwh4](https://github.com/advisories/GHSA-6g2q-w5j3-fwh4), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2021-21334](https://nvd.nist.gov/vuln/detail/CVE-2021-21334), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-21334 · Whole record: https://cve.day/CVE-2021-21334.json · Rebuilt by cve.day 2026-11-25T22:58:00.231Z
