UBUNTU-CVE-2021-21334 (CVE-2021-21334)
Vulnerability from osv_ubuntu – Published: 2021-03-05 00:00 – Updated: 2026-11-24 09:44 – Source websiteIn 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.
| Ecosystem | Package | Version |
|---|---|---|
| Ubuntu:Pro:16.04:LTS |
containerd
pkg:deb/ubuntu/containerd@1.2.6-0ubuntu1~16.04.6+esm7?arch=source&distro=esm-apps-legacy/xenial
|
Affected: All versions (ecosystem)
0.2.1-0ubuntu4~16.040.2.3-0ubuntu1~16.040.2.5-0ubuntu1~16.04.11.2.6-0ubuntu1~16.04.21.2.6-0ubuntu1~16.04.31.2.6-0ubuntu1~16.04.41.2.6-0ubuntu1~16.04.51.2.6-0ubuntu1~16.04.61.2.6-0ubuntu1~16.04.6+esm11.2.6-0ubuntu1~16.04.6+esm2
and 4 more (see JSON)
|
| Ubuntu:18.04:LTS |
containerd
pkg:deb/ubuntu/containerd@1.5.2-0ubuntu1~18.04.2?arch=source&distro=bionic
|
Affected: < 1.5.2-0ubuntu1~18.04.2 (ecosystem)
0.2.5-0ubuntu21.2.6-0ubuntu1~18.04.11.2.6-0ubuntu1~18.04.21.3.3-0ubuntu1~18.04.11.3.3-0ubuntu1~18.04.21.3.3-0ubuntu1~18.04.31.3.3-0ubuntu1~18.04.41.4.4-0ubuntu1~18.04.21.5.2-0ubuntu1~18.04.1
|
| Ubuntu:20.04:LTS |
containerd
pkg:deb/ubuntu/containerd@1.3.3-0ubuntu2.3?arch=source&distro=focal
|
Affected: < 1.3.3-0ubuntu2.3 (ecosystem)
1.2.10-0ubuntu11.3.2-0ubuntu11.3.3-0ubuntu11.3.3-0ubuntu21.3.3-0ubuntu2.11.3.3-0ubuntu2.2
|
{
"affected": [
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "containerd",
"binary_version": "1.2.6-0ubuntu1~16.04.6+esm7"
},
{
"binary_name": "golang-github-docker-containerd-dev",
"binary_version": "1.2.6-0ubuntu1~16.04.6+esm7"
}
]
},
"package": {
"ecosystem": "Ubuntu:Pro:16.04:LTS",
"name": "containerd",
"purl": "pkg:deb/ubuntu/containerd@1.2.6-0ubuntu1~16.04.6+esm7?arch=source\u0026distro=esm-apps-legacy/xenial"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"0.2.1-0ubuntu4~16.04",
"0.2.3-0ubuntu1~16.04",
"0.2.5-0ubuntu1~16.04.1",
"1.2.6-0ubuntu1~16.04.2",
"1.2.6-0ubuntu1~16.04.3",
"1.2.6-0ubuntu1~16.04.4",
"1.2.6-0ubuntu1~16.04.5",
"1.2.6-0ubuntu1~16.04.6",
"1.2.6-0ubuntu1~16.04.6+esm1",
"1.2.6-0ubuntu1~16.04.6+esm2",
"1.2.6-0ubuntu1~16.04.6+esm4",
"1.2.6-0ubuntu1~16.04.6+esm5",
"1.2.6-0ubuntu1~16.04.6+esm6",
"1.2.6-0ubuntu1~16.04.6+esm7"
]
},
{
"ecosystem_specific": {
"availability": "No subscription required",
"binaries": [
{
"binary_name": "containerd",
"binary_version": "1.5.2-0ubuntu1~18.04.2"
},
{
"binary_name": "golang-github-containerd-containerd-dev",
"binary_version": "1.5.2-0ubuntu1~18.04.2"
},
{
"binary_name": "golang-github-docker-containerd-dev",
"binary_version": "1.5.2-0ubuntu1~18.04.2"
}
]
},
"package": {
"ecosystem": "Ubuntu:18.04:LTS",
"name": "containerd",
"purl": "pkg:deb/ubuntu/containerd@1.5.2-0ubuntu1~18.04.2?arch=source\u0026distro=bionic"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "1.5.2-0ubuntu1~18.04.2"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"0.2.5-0ubuntu2",
"1.2.6-0ubuntu1~18.04.1",
"1.2.6-0ubuntu1~18.04.2",
"1.3.3-0ubuntu1~18.04.1",
"1.3.3-0ubuntu1~18.04.2",
"1.3.3-0ubuntu1~18.04.3",
"1.3.3-0ubuntu1~18.04.4",
"1.4.4-0ubuntu1~18.04.2",
"1.5.2-0ubuntu1~18.04.1"
]
},
{
"ecosystem_specific": {
"availability": "No subscription required",
"binaries": [
{
"binary_name": "containerd",
"binary_version": "1.3.3-0ubuntu2.3"
},
{
"binary_name": "golang-github-docker-containerd-dev",
"binary_version": "1.3.3-0ubuntu2.3"
}
]
},
"package": {
"ecosystem": "Ubuntu:20.04:LTS",
"name": "containerd",
"purl": "pkg:deb/ubuntu/containerd@1.3.3-0ubuntu2.3?arch=source\u0026distro=focal"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "1.3.3-0ubuntu2.3"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1.2.10-0ubuntu1",
"1.3.2-0ubuntu1",
"1.3.3-0ubuntu1",
"1.3.3-0ubuntu2",
"1.3.3-0ubuntu2.1",
"1.3.3-0ubuntu2.2"
]
}
],
"aliases": [],
"details": "In containerd (an industry-standard container runtime) before versions 1.3.10 and 1.4.4, containers launched through containerd\u0027s 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\u0027s 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.",
"id": "UBUNTU-CVE-2021-21334",
"modified": "2026-11-24T09:44:55Z",
"published": "2021-03-05T00:00:00Z",
"references": [
{
"type": "REPORT",
"url": "https://ubuntu.com/security/CVE-2021-21334"
},
{
"type": "REPORT",
"url": "https://github.com/containerd/containerd/security/advisories/GHSA-6g2q-w5j3-fwh4"
},
{
"type": "ADVISORY",
"url": "https://ubuntu.com/security/notices/USN-4881-1"
},
{
"type": "REPORT",
"url": "https://www.cve.org/CVERecord?id=CVE-2021-21334"
}
],
"related": [
"USN-4881-1"
],
"schema_version": "1.9.2",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N",
"source": "CNA",
"type": "CVSS_V3"
},
{
"score": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N",
"source": "NVD",
"type": "CVSS_V3"
},
{
"score": "medium",
"source": "SELF",
"type": "Ubuntu"
}
],
"upstream": [
"CVE-2021-21334"
]
}
Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline
Sightings and recorded dates, grouped by day · UTC
How durations are calculated
Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.
Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.
Loading timeline…
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.