Skip to content
Fencer Vulns
medium 5.0

CVE-2021-32760 json

Archive package allows chmod of file outside of unpack target directory

published 2021-07-19 5 y ago modified 2026-09-10 1 mo ago also GHSA-c72p-9xmj-rx3w , GO-2022-0921 , EUVD-2021-1457

cvss
5.0
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
1.6%
EPSS 1.6% chance of exploitation in 30 days, percentile 75%
public exploits
0
none known

Summary

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.

Patch / fix

  • go github.com/containerd/containerd 1.4.8, 1.5.4
  • linuxfoundation containerd 1.4.8, 1.5.4
  • containerd Debian 14, Debian 13, Debian 12 1.4.5~ds1-2

debian advisories DEBIAN-CVE-2021-32760

  • containerd Ubuntu 18.04 LTS 1.5.2-0ubuntu1~18.04.2
  • containerd Ubuntu 20.04 LTS 1.5.2-0ubuntu1~20.04.2
  • containerd Ubuntu Pro 16.04 LTS 1.2.6-0ubuntu1~16.04.6+esm2

ubuntu advisories UBUNTU-CVE-2021-32760

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • runc SLES for SAP 15 SP1, SLES for SAP 15, SLES 15-LTSS +12 more 1.0.2-23.1
  • docker SLES for SAP 15 SP1, SLES for SAP 15, SLES 15-LTSS +11 more 20.10.9_ce-156.1
  • containerd SLES for SAP 15 SP1, SLES for SAP 15, SLES 15-LTSS +11 more 1.4.11-56.1
  • runc SLE Module for Containers 12 1.0.2-16.14.1
  • docker SLE Module for Containers 12 20.10.9_ce-98.72.1
  • containerd SLE Module for Containers 12 1.4.11-16.45.1
  • containerd SLE Module for Containers 12 1.4.4-16.42.1
  • containerd SLE Module for Containers 15 SP3, SLE Module for Containers 15 SP2, SLE Micro 5.0 1.4.4-5.36.1

suse advisories SUSE-SU-2021:3506-1SUSE-SU-2021:3336-1SUSE-SU-2021:2413-1SUSE-SU-2021:2412-1

  • containerd openSUSE Tumbleweed 1.4.8-2.2
  • trivy openSUSE Tumbleweed 0.20.2-1.1
  • runc openSUSE Leap 15.2 1.0.2-lp152.2.9.1
  • docker openSUSE Leap 15.2 20.10.9_ce-lp152.2.18.1
  • containerd openSUSE Leap 15.2 1.4.11-lp152.2.12.1
  • runc openSUSE Leap 15.3 1.0.2-23.1
  • docker openSUSE Leap 15.3 20.10.9_ce-156.1
  • containerd openSUSE Leap 15.3 1.4.11-56.1

opensuse advisories openSUSE-SU-2024:10693-1openSUSE-SU-2024:11619-1openSUSE-SU-2021:1404-1openSUSE-SU-2021:3506-1openSUSE-SU-2021:1081-1openSUSE-SU-2021:2412-1

  • containerd Alpine 3.13 1.4.8-r0
  • containerd Alpine 3.24, Alpine 3.23, Alpine 3.22 +8 more 1.5.4-r0

alpine advisories ALPINE-CVE-2021-32760

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • moby-containerd CBL-Mariner 2.0 1.4.4+azure-4

azure linux advisories AZL-6680

Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT

  • containerd Arch Linux 1.5.4-1

arch linux advisories AVG-2174

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2021-32760 updated cvss 5.5

containerd: pulling and extracting crafted container image may result in Unix file permission changes

  • Red Hat 3scale API Management Platform 2 3scale-amp2/3scale-rhel7-operator Red Hat OpenShift Data Science (RHODS) rhods/odh-operator-base-rhel8
    affected: no fix available
  • Red Hat OpenStack Platform 16.2 osp-director-provisioner-container, rhosp-rhel8-tech-preview/osp-director-downloader
    affected: no fix available, no fix planned “Will not fix”
  • Red Hat cert-manager Operator for Red Hat OpenShift cert-manager/cert-manager-operator-rhel9, cert-manager/jetstack-cert-manager-rhel9
    under investigation
  • Red Hat OpenStack Platform 16.2 rhosp-rhel8-tech-preview/osp-director-operator 1.2.3-2
    fixed: vendor fix RHSA-2022:2183
  • Red Hat RHOSSM 2.4 for RHEL 8 openshift-service-mesh/pilot-rhel8 2.4.4-5, openshift-service-mesh/kiali-rhel8 1.65.9-4, openshift-service-mesh/grafana-rhel8 2.4.4-2, openshift-service-mesh/proxyv2-rhel8 2.4.4-5, openshift-service-mesh/istio-cni-rhel8 2.4.4-5, openshift-service-mesh/ratelimit-rhel8 2.4.4-2, +3 more
    fixed: vendor fix RHSA-2023:5952
  • Red Hat Cost Management Metrics Operator costmanagement/costmanagement-metrics-rhel8-operator Red Hat Cryostat 2 cryostat-tech-preview/cryostat-rhel8-operator Red Hat Logging Subsystem for Red Hat OpenShift openshift-logging/logging-loki-rhel9, openshift-logging/opa-openshift-rhel8, openshift-logging/lokistack-gateway-rhel8 Red Hat Migration Toolkit for Containers rhmtc/openshift-velero-plugin-rhel8, rhmtc/openshift-migration-controller-rhel8 Red Hat Migration Toolkit for Virtualization migration-toolkit-virtualization/mtv-rhel8-operator, migration-toolkit-virtualization/mtv-controller-rhel9 Red Hat OpenShift API for Data Protection oadp/oadp-velero-plugin-rhel8
    +18 more products
    Red Hat OpenShift Serverless openshift-serverless-1/client-kn-rhel8, openshift-serverless-1/serving-queue-rhel8, openshift-serverless-1/ingress-rhel8-operator, serverless-1/openshift-serverless-1-knative-client-plugin-event-sender-rhel8-container Red Hat OpenShift Service Mesh 2 openshift-service-mesh/prometheus-rhel8 Red Hat Advanced Cluster Management for Kubernetes 2 containerd, rhacm2/thanos-rhel7, rhacm2/prometheus-rhel9, rhacm2/acm-grafana-rhel8, rhacm2/observatorium-rhel8, rhacm2/acm-prometheus-rhel8, +22 more Red Hat Advanced Cluster Security 3 advanced-cluster-security/rhacs-main-rhel8, advanced-cluster-security/rhacs-scanner-rhel8 Red Hat Advanced Cluster Security 4 advanced-cluster-security/rhacs-main-rhel8, advanced-cluster-security/rhacs-scanner-rhel8 Red Hat OpenShift Container Platform 3.11 atomic-openshift, atomic-openshift-pod, atomic-openshift-node, atomic-openshift-tests, atomic-openshift-master, atomic-openshift-clients, +7 more Red Hat OpenShift Container Platform 4 openshift4/ose-pod, openshift4/ose-tests, openshift4/ose-console, openshift4/ose-grafana, openshift4/ose-installer, openshift4/ose-sdn-rhel8, +76 more Red Hat OpenShift Container Platform Assisted Installer 1 rhai-tech-preview/assisted-installer-rhel8, rhai-tech-preview/assisted-installer-agent-rhel8 Red Hat Openshift Container Storage 4 ocs4/cephcsi-rhel8, ocs4/mcg-rhel8-operator, ocs4/ocs-rhel8-operator, ocs4/rook-ceph-rhel8-operator Red Hat Openshift Data Foundation 4 odf4/cephcsi-rhel9, odf4/mcg-rhel9-operator, odf4/ocs-rhel9-operator, odf4/odf-rhel8-operator, odf4/odr-rhel9-operator, odf4/odf-lvm-rhel8-operator, +3 more Red Hat OpenShift Data Science (RHODS) rhods/odh-model-controller-rhel8, rhods/odh-ml-pipelines-cache-rhel8, rhods/odh-modelmesh-serving-controller-rhel8 Red Hat OpenShift Dev Spaces devspaces/traefik-rhel8 Red Hat OpenShift distributed tracing 2 rhosdt/opentelemetry-rhel8-operator Red Hat OpenShift GitOps openshift-gitops-1/argocd-rhel8, openshift-gitops-1/gitops-rhel8, openshift-gitops-1/kam-delivery-rhel8, openshift-gitops-1/gitops-rhel8-operator Red Hat Openshift Sandboxed Containers openshift-sandboxed-containers/osc-rhel8-operator, openshift-sandboxed-containers/osc-cloud-api-adaptor-rhel9 Red Hat OpenShift Virtualization 4 container-native-virtualization/multus-dynamic-networks-rhel9, container-native-virtualization/cluster-network-addons-operator, container-native-virtualization/kubernetes-nmstate-handler-rhel8, container-native-virtualization/cluster-network-addons-operator-rhel9 Red Hat OpenStack Platform 16.2 rhosp-rhel8-tech-preview/osp-director-downloader 1.2.3-2, rhosp-rhel8-tech-preview/osp-director-operator-bundle 1.2.3-3 Red Hat Quay 3 quay/quay-builder-rhel8, quay/quay-operator-rhel8
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
partial
Assessed
23 mo ago

Exploit prediction

1.59% chance of exploitation in the next 30 days, higher than 75% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CNA 3.1 5.0 CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L
NVD 3.1 6.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L
NVD 2.0 6.8 AV:N/AC:M/Au:N/C:P/I:P/A:P
GitHub 3.1 5.0 CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L

Affected packages

ecosystem package affected fixed in
go github.com/containerd/containerd
<1.4.8
>=1.5.0, <1.5.4
1.4.8
1.5.4

Affected products

  • containerd containerd

Classification

Weakness
  • CWE-668 Exposure of Resource to Wrong Sphere
  • CWE-732 Incorrect Permission Assignment for Critical Resource

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.