Skip to content
Fencer Vulns
medium 4.6

CVE-2024-40635 json

containerd has an integer overflow in User ID handling

published 2025-03-17 19 mo ago modified 2026-09-10 1 mo ago also EUVD-2025-6529 , GHSA-265r-hfxg-fhmg , GO-2025-3528

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

Summary

containerd is an open-source container runtime. A bug was found in containerd prior to versions 1.6.38, 1.7.27, and 2.0.4 where containers launched with a User set as a `UID:GID` larger than the maximum 32-bit signed integer can cause an overflow condition where the container ultimately runs as root (UID 0). This could cause unexpected behavior for environments that require containers to run as a non-root user. This bug has been fixed in containerd 1.6.38, 1.7.27, and 2.04. As a workaround, ensure that only trusted images are used and that only trusted users have permissions to import images.

Patch / fix

  • go github.com/containerd/containerd/v2 2.0.4
  • go github.com/containerd/containerd 1.6.38, 1.7.27
  • linuxfoundation containerd 1.6.38, 1.7.27, 2.0.4
  • containerd Debian 12 1.6.20~ds1-1+deb12u2
  • containerd Debian 14, Debian 13 1.7.24~ds1-6

debian advisories DEBIAN-CVE-2024-40635

  • containerd Ubuntu 20.04 LTS 1.6.12-0ubuntu1~20.04.8
  • containerd Ubuntu 22.04 LTS 1.6.12-0ubuntu1~22.04.8
  • containerd-app Ubuntu 20.04 LTS 1.7.24-0ubuntu1~20.04.2
  • containerd-app Ubuntu 22.04 LTS 1.7.24-0ubuntu1~22.04.2
  • containerd-app Ubuntu 24.04 LTS 1.7.24-0ubuntu1~24.04.2
  • containerd-app Ubuntu 25.10 2.0.2-0ubuntu2
  • containerd Ubuntu Pro 16.04 LTS 1.2.6-0ubuntu1~16.04.6+esm5
  • containerd Ubuntu Pro 18.04 LTS 1.6.12-0ubuntu1~18.04.1+esm2

ubuntu advisories UBUNTU-CVE-2024-40635

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

  • containerd Linux Micro 6.1 1.7.27-slfo.1.1_1.1
  • containerd Linux Micro 6.0 1.7.27-1.1
  • containerd SLE Module for Containers 15 SP6, SLE Micro 5.5, SLE Micro 5.4 +4 more 1.7.27-150000.123.1
  • containerd SLES LTSS Extended Security 12 SP5 1.7.27-16.100.1

suse advisories SUSE-SU-2025:20459-1SUSE-SU-2025:20216-1SUSE-SU-2025:1346-1SUSE-SU-2025:1345-1

  • containerd openSUSE Tumbleweed 1.7.27-1.1
  • cmctl openSUSE Tumbleweed 2.2.0-1.1
  • govulncheck-vulndb openSUSE Tumbleweed 0.0.20250318T181448-1.1

opensuse advisories openSUSE-SU-2025:15169-1openSUSE-SU-2025:15039-1openSUSE-SU-2025:14910-1

  • moby-containerd CBL-Mariner 2.0 1.6.26-11
  • containerd Azure Linux 3.0 1.7.13-8
  • containerd2 Azure Linux 3.0 2.0.0-8
  • moby-containerd-cc Azure Linux 3.0 1.7.7-9
  • moby-containerd-cc CBL-Mariner 2.0 1.7.7-11

azure linux advisories AZL-58844AZL-58845AZL-58867AZL-60893AZL-60897

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

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-2024-40635 updated cvss 4.6

containerd: containerd has an integer overflow in User ID handling

  • Red Hat Assisted Installer for Red Hat OpenShift Container Platform 2 rhai-tech-preview/assisted-installer-agent-rhel8 Red Hat cert-manager Operator for Red Hat OpenShift openshift4/jetstack-cert-manager, cert-manager/jetstack-cert-manager-acmesolver-rhel9 Red Hat Deployment Validation Operator dvo/deployment-validation-rhel8-operator Red Hat Logging Subsystem for Red Hat OpenShift openshift-logging/logging-loki-rhel9 Red Hat Migration Toolkit for Virtualization migration-toolkit-virtualization/mtv-validation-rhel9 Red Hat Multicluster Engine for Kubernetes multicluster-engine/assisted-service-8-rhel8, multicluster-engine/assisted-service-9-rhel9
    +14 more products
    Red Hat Network Observability Operator network-observability/network-observability-cli-rhel9 Red Hat OpenShift Developer Tools and Services ocp-tools-4/jenkins-agent-base-rhel8, ocp-tools-4/jenkins-agent-base-rhel9 Red Hat OpenShift Lightspeed openshift-lightspeed-tech-preview/lightspeed-service-api-rhel9 Red Hat OpenShift Serverless openshift-serverless-1/client-kn-rhel8, openshift-serverless-1/func-utils-rhel8, openshift-serverless-1/kn-client-kn-rhel8, openshift-serverless-1/serverless-ingress-rhel8, openshift-serverless-1/serverless-kn-operator-rhel8, openshift-serverless-1/serverless-must-gather-rhel8, +3 more Red Hat OpenShift Service Mesh 3 openshift-service-mesh/istio-rhel9-operator Red Hat Advanced Cluster Management for Kubernetes 2 rhacm2/prometheus-rhel9, rhacm2/multicloud-integrations-rhel9, rhacm2/multicluster-operators-channel-rhel9, rhacm2/multicluster-operators-subscription-rhel9 Red Hat Advanced Cluster Security 4 advanced-cluster-security/rhacs-main-rhel8, advanced-cluster-security/rhacs-roxctl-rhel8, advanced-cluster-security/rhacs-rhel8-operator, advanced-cluster-security/rhacs-central-db-rhel8, advanced-cluster-security/rhacs-scanner-v4-rhel8, advanced-cluster-security/rhacs-scanner-v4-db-rhel8 Red Hat Developer Hub 1 rhdh-orchestrator-dev-preview-beta/controller-rhel9-operator Red Hat OpenShift AI (RHOAI) rhoai/odh-model-controller-rhel8, rhoai/odh-ml-pipelines-driver-rhel8, rhoai/odh-ml-pipelines-launcher-rhel8, rhoai/odh-ml-pipelines-api-server-v2-rhel8, rhoai/odh-ml-pipelines-persistenceagent-v2-rhel8, rhoai/odh-ml-pipelines-scheduledworkflow-v2-rhel8 Red Hat OpenShift Container Platform 4 kata-containers, stargz-snapshotter, openshift4/ose-operator-framework-tools-rhel9 Red Hat OpenShift GitOps openshift-gitops-1/argocd-rhel8, openshift-gitops-1/argocd-rhel9 Red Hat Openshift Sandboxed Containers openshift-sandboxed-containers/osc-podvm-builder-rhel9, openshift-sandboxed-containers/osc-podvm-payload-rhel9, openshift-sandboxed-containers/osc-cloud-api-adaptor-rhel9, openshift-sandboxed-containers/osc-cloud-api-adaptor-webhook-rhel9 Red Hat OpenShift Virtualization 4 container-native-virtualization/multus-dynamic-networks-rhel9 Red Hat Trusted Application Pipeline rhtap-cli/rhtap-cli-rhel9
    affected: workaround, no fix available “Fix deferred”
  • Red Hat Openshift Data Foundation 4.22 odf4/cephcsi-rhel9 1782932114, odf4/odf-cli-rhel9 1783537001, odf4/mcg-core-rhel9 1783536000, odf4/odf-drbd-rhel9 1783537392, odf4/odf-console-rhel9 1783537586, odf4/devicefinder-rhel9 1782932104, +21 more
    fixed: vendor fix RHSA-2026:37387
  • Red Hat Openshift Data Foundation 4.22 odf4/mcg-operator-bundle 1783538986, odf4/ocs-operator-bundle 1783539176, odf4/odf-operator-bundle 1783539513, odf4/cephcsi-operator-bundle 1783538908, odf4/odr-hub-operator-bundle 1783539596, odf4/rook-ceph-operator-bundle 1783539714, +10 more
    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
19 mo ago

Exploit prediction

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

CVSS scores

assigned by version score vector
CNA 3.1 4.6 CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:N
GitHub 3.1 4.6 CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:N
NVD 3.1 7.8 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected packages

ecosystem package affected fixed in
go github.com/containerd/containerd/v2
<2.0.4
2.0.4
go github.com/containerd/containerd
>=1.7.0-beta.0, <1.7.27
<1.6.38
1.7.27
1.6.38

Affected products

  • containerd containerd

Classification

Weakness
  • CWE-190 Integer Overflow or Wraparound

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.

CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.