CVE-2021-21334

Public on 2021-03-10
Modified on 2025-04-21
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.
Severity
Medium severity
Medium
CVSS v3 Base Score
6.3
See breakdown

Affected Packages

Platform Package Release Date Advisory Status
HAQM Linux 1 containerd 2021-07-19 ALAS-2021-1523 Fixed
HAQM Linux 2 - Docker Extra containerd 2021-10-19 ALAS2DOCKER-2021-011 Fixed
HAQM Linux 2 - Ecs Extra containerd 2023-10-18 ALAS2ECS-2023-014 Fixed
HAQM Linux 2 - Aws-nitro-enclaves-cli Extra containerd 2021-10-19 ALAS2NITRO-ENCLAVES-2021-011 Fixed

CVSS Scores

Score Type Score Vector
HAQM Linux CVSSv3 6.3 CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N
NVD CVSSv2 4.3 AV:N/AC:M/Au:N/C:P/I:N/A:N
NVD CVSSv3 6.3 CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N