CVE-2024-40635: containerd Integer Overflow or Wraparound
Vulnerability summary
CVE-2024-40635 is a high (CVSS 7.8) Integer Overflow or Wraparound vulnerability in containerd. EPSS estimates a 0.30% chance of exploitation in the next 30 days, higher than 21.3% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 1 · Related 98Timeline
- 17-03-2025PublishedVulnerability first disclosed.
- 04-05-2025Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
7 scores · 7 sources · 1 version- CVE.orgCNA4.6MediumCVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:NDiffers
- OSV · UbuntuEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · WolfiEcosystem advisory · calculated4.6MediumCVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:NDiffers
- OSV · GoEcosystem advisory · calculated4.6MediumCVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:NDiffers
- OSV · ChainguardEcosystem advisory · calculated4.6MediumCVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:NDiffers
EPSS trend
Probability
0.30%
Chance of exploitation in the next 30 days
Percentile
21%
Versus all other CVEs
30-day change
+0.01 pp
From 0.29% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Chainguard177 products
- auditbeat-7< 7.17.28-r7
- auditbeat-7-oci-entrypoint< 7.17.28-r7
- auditbeat-fips-7< 7.17.28-r5
- beats-7< 7.17.28-r7
- beats-fips-7< 7.17.28-r5
Wolfi23 products
- buildctl< 0.20.1-r3
- buildkitd< 0.20.1-r3
- cert-manager-cmctl< 2.1.1-r9
- chartmuseum< 0.16.2-r15
- cilium-cli< 0.18.2-r2
2 vendors · 200 products · Showing 200 of 286. Use Open JSON for the complete list.
References
25 links- github.com/containerd/containerd/security/advisories/GHSA-265r-hfxg-fhmgX Refsource CONFIRMREPORTAdvisoryWEBVendor Advisory
- github.com/containerd/containerd/commit/05044ec0a9a75232cad458027ca83437aae3f4daX Refsource MISCREPORTFIXWEBPatch
- github.com/containerd/containerd/commit/1a43cb6a1035441f9aca8f5666a9b3ef9e70ab20X Refsource MISCREPORTFIXWEBPatch
- github.com/containerd/containerd/commit/cf158e884cfe4812a6c371b59e4ea9bc4c46e51aX Refsource MISCREPORTFIXWEBPatch
Show all 25 references
- lists.opensuse.org/archives/…Advisory
- lists.opensuse.org/archives/…Advisory