ubuntu-cve-2021-32760
Vulnerability from osv_ubuntu
containerd is a container runtime. A bug was found in containerd versions prior to 1.4.8 and 1.5.4 where pulling and extracting a specially-crafted container image can result in Unix file permission changes for existing files in the host’s filesystem. Changes to file permissions can deny access to the expected owner of the file, widen access to others, or set extended bits like setuid, setgid, and sticky. This bug does not directly allow files to be read, modified, or executed without an additional cooperating process. This bug has been fixed in containerd 1.5.4 and 1.4.8. As a workaround, ensure that users only pull images from trusted sources. Linux security modules (LSMs) like SELinux and AppArmor can limit the files potentially affected by this bug through policies and profiles that prevent containerd from interacting with specific files.
{
"affected": [
{
"ecosystem_specific": {
"availability": "Available with Ubuntu Pro: https://ubuntu.com/pro",
"binaries": [
{
"binary_name": "containerd",
"binary_version": "1.2.6-0ubuntu1~16.04.6+esm2"
},
{
"binary_name": "golang-github-docker-containerd-dev",
"binary_version": "1.2.6-0ubuntu1~16.04.6+esm2"
}
]
},
"package": {
"ecosystem": "Ubuntu:Pro:16.04:LTS",
"name": "containerd",
"purl": "pkg:deb/ubuntu/containerd@1.2.6-0ubuntu1~16.04.6+esm2?arch=source\u0026distro=esm-apps/xenial"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "1.2.6-0ubuntu1~16.04.6+esm2"
}
],
"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"
]
},
{
"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.5.2-0ubuntu1~20.04.2"
},
{
"binary_name": "golang-github-containerd-containerd-dev",
"binary_version": "1.5.2-0ubuntu1~20.04.2"
},
{
"binary_name": "golang-github-docker-containerd-dev",
"binary_version": "1.5.2-0ubuntu1~20.04.2"
}
]
},
"package": {
"ecosystem": "Ubuntu:20.04:LTS",
"name": "containerd",
"purl": "pkg:deb/ubuntu/containerd@1.5.2-0ubuntu1~20.04.2?arch=source\u0026distro=focal"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "1.5.2-0ubuntu1~20.04.2"
}
],
"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",
"1.3.3-0ubuntu2.3",
"1.4.4-0ubuntu1~20.04.2",
"1.5.2-0ubuntu1~20.04.1"
]
}
],
"aliases": [],
"details": "containerd is a container runtime. A bug was found in containerd versions prior to 1.4.8 and 1.5.4 where pulling and extracting a specially-crafted container image can result in Unix file permission changes for existing files in the host\u2019s filesystem. Changes to file permissions can deny access to the expected owner of the file, widen access to others, or set extended bits like setuid, setgid, and sticky. This bug does not directly allow files to be read, modified, or executed without an additional cooperating process. This bug has been fixed in containerd 1.5.4 and 1.4.8. As a workaround, ensure that users only pull images from trusted sources. Linux security modules (LSMs) like SELinux and AppArmor can limit the files potentially affected by this bug through policies and profiles that prevent containerd from interacting with specific files.",
"id": "UBUNTU-CVE-2021-32760",
"modified": "2025-09-08T16:47:10Z",
"published": "2021-07-19T19:00:00Z",
"references": [
{
"type": "REPORT",
"url": "https://ubuntu.com/security/CVE-2021-32760"
},
{
"type": "REPORT",
"url": "https://github.com/containerd/containerd/security/advisories/GHSA-c72p-9xmj-rx3w"
},
{
"type": "ADVISORY",
"url": "https://ubuntu.com/security/notices/USN-5012-1"
},
{
"type": "REPORT",
"url": "https://www.cve.org/CVERecord?id=CVE-2021-32760"
},
{
"type": "ADVISORY",
"url": "https://ubuntu.com/security/notices/USN-5521-1"
}
],
"related": [
"USN-5012-1",
"USN-5521-1"
],
"schema_version": "1.7.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L",
"type": "CVSS_V3"
},
{
"score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L",
"type": "CVSS_V3"
},
{
"score": "high",
"type": "Ubuntu"
}
],
"upstream": [
"CVE-2021-32760"
]
}
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.