{"id":"CVE-2021-21334","published":"2021-03-10T21:30:18Z","modified":"2024-08-03T18:09:15Z","title":"environment variable leak","vendor":"containerd","product":"containerd","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01947,"percentile":0.80726,"provenance":"source"},"cwes":[{"id":"CWE-668","name":"Exposure of Resource to Wrong Sphere"}],"references":[{"url":"https://github.com/containerd/containerd/security/advisories/GHSA-6g2q-w5j3-fwh4","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/containerd/containerd/releases/tag/v1.4.4","tags":["x_refsource_MISC"]},{"url":"https://github.com/containerd/containerd/releases/tag/v1.3.10","tags":["x_refsource_MISC"]},{"url":"https://github.com/containerd/containerd/commit/05f951a3781f4f2c1911b05e61c160e9c30eaa8e","tags":["x_refsource_MISC"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KUE2Z2ZUWBHRU36ZGBD2YSJCYB6ELPXE/","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QIBPKSX5IOWPM3ZPFB3JVLXWDHSZTTWT/","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VTXHA5JOWQRCCUZH7ZQBEYN6KZKJEYSD/","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://security.gentoo.org/glsa/202105-33","tags":["vendor-advisory","x_refsource_GENTOO"]}],"priority":{"score":20.6,"factors":[{"name":"EPSS percentile","points":16.15},{"name":"CVSS severity","points":4.41}]},"vendorSlug":"containerd","affectedVersions":[{"vendor":"containerd","product":"containerd","versions":["< 1.3.10",">= 1.4.0, < 1.4.4"]}],"affected":[{"ecosystem":"Go","package":"github.com/containerd/containerd","vulnerableRanges":[">=1.4.0, <1.4.4","<1.3.10"],"patched":["1.4.4","1.3.10"],"from":["GHSA-6g2q-w5j3-fwh4"],"provenance":"source"}],"summary":{"text":"The flaw is in containerd's CRI implementation, the component through which Kubernetes, crictl, and other pod or container clients launch containers, where containers started from the same image can receive incorrect environment variables, including values defined for other containers. An attacker with low privileges reachable over the network can exploit this when affected containers with different security contexts run from the same image in rapid succession, which can unintentionally expose sensitive information across them.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:14:59Z"},"euvd":{"id":"EUVD-2024-0272","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2020-15157","published":"2020-10-16","fixed":"1.2.14","kev":false},{"cve":"CVE-2020-15257","published":"2020-12-01","fixed":"1.4.3","kev":false,"link":{"from":"CVE-2020-15257","to":"CVE-2021-21334","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/containerd/containerd","fromFixed":"1.4.3","toFixed":"1.4.4","daysApart":99}]}},{"cve":"CVE-2021-21334","published":"2021-03-10","fixed":"1.4.4","kev":false},{"cve":"CVE-2021-32760","published":"2021-07-19","fixed":"1.5.4","kev":false,"link":{"from":"CVE-2021-21334","to":"CVE-2021-32760","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/containerd/containerd","fromFixed":"1.4.4","toFixed":"1.4.8","daysApart":131}]}},{"cve":"CVE-2021-41103","published":"2021-10-04","fixed":"1.5.7","kev":false},{"cve":"CVE-2021-43816","published":"2022-01-05","fixed":"1.5.9","kev":false}],"package":"Go:github.com/containerd/containerd"}}