CVE-2024-40635: GO-2025-3528 - containerd has an integer overflow in User ID handling in github.com/containerd/containerd

CVE-2024-40635 · Severity: low · CVSS 3.1 · Published 2025-03-18

containerd has an integer overflow in User ID handling in github.com/containerd/containerd

Technologies: github.com/containerd/containerd (Go), github.com/containerd/containerd/v2 (Go). Vendors: Go.

Quick answers

Is CVE-2024-40635 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2024-40635 being exploited in the wild.
How severe is CVE-2024-40635?
Low severity, with a CVSS score of 3.1, published 18 March 2025.
Which products and versions are affected?
github.com/containerd/containerd (Go) SEMVER:introduced=0,fixed=1.6.38,introduced=1.7.0-beta.0,fixed=1.7.27, SEMVER:introduced=1.7.0-beta.0,fixed=1.7.27; github.com/containerd/containerd/v2 (Go) SEMVER:introduced=0,fixed=2.0.4.
Is there a fix for CVE-2024-40635?
Yes. github.com/containerd/containerd (Go): upgrade to 1.7.27 or later; github.com/containerd/containerd/v2 (Go): upgrade to 2.0.4 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected by CVE-2024-40635?
Check whether you run github.com/containerd/containerd (Go) or github.com/containerd/containerd/v2 (Go) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • github.com/containerd/containerd (Go): upgrade to 1.7.27 or later
    go get github.com/containerd/containerd@v1.7.27
  • github.com/containerd/containerd/v2 (Go): upgrade to 2.0.4 or later
    go get github.com/containerd/containerd/v2@v2.0.4

Affected products

  • github.com/containerd/containerd (Go) SEMVER:introduced=0,fixed=1.6.38,introduced=1.7.0-beta.0,fixed=1.7.27, SEMVER:introduced=1.7.0-beta.0,fixed=1.7.27
  • github.com/containerd/containerd/v2 (Go) SEMVER:introduced=0,fixed=2.0.4

Identifiers

  • CVE-2024-40635
  • GHSA-265r-hfxg-fhmg
  • GO-2025-3528

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.