Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/containerd/containerd
  4. ›
  5. CVE-2021-32760

CVE-2021-32760: Exposure of Resource to Wrong Sphere

July 19, 2021 (updated January 31, 2024)

containerd is a container runtime. A bug was found in containerd 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. 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.

References

  • nvd.nist.gov/vuln/detail/CVE-2021-32760

Code Behaviors & Features

Detect and mitigate CVE-2021-32760 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.4.8, all versions starting from 1.5.0 before 1.5.4

Fixed versions

  • v1.4.8
  • v1.5.4

Solution

Upgrade to versions 1.4.8, 1.5.4 or above.

Impact 6.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L

Learn more about CVSS

Weakness

  • CWE-732: Incorrect Permission Assignment for Critical Resource

Source file

go/github.com/containerd/containerd/CVE-2021-32760.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:49 +0000.