Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2024-40635

MEDIUM 4.6EPSS 20%

containerd has an integer overflow in User ID handling

Also known as GHSA-265r-hfxg-fhmg, GO-2025-3528

Mitigation

  • Upgrade github.com/containerd/containerd/v2 to 2.0.4 or later.
  • Upgrade github.com/containerd/containerd to one of 1.7.27, 1.6.38 (or later in the same release line).

Who should check

  • Projects that depend on Go package github.com/containerd/containerd/v2 (< 2.0.4)
  • Projects that depend on Go package github.com/containerd/containerd (>= 1.7.0-beta.0, < 1.7.27)
  • Anyone running containerd < 1.6.38; >= 1.7.0-beta.0, < 1.7.27; >= 2.0.0-beta.0, < 2.0.4

Vulnerability facts

Affected
github.com/containerd/containerd/v2 < 2.0.4; github.com/containerd/containerd >= 1.7.0-beta.0, < 1.7.27
Fixed in
2.0.4, 1.7.27, 1.6.38
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
4.6 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Local
  • Attack complexity: Low
  • Privileges required: High
  • User interaction: None
  • Scope: Changed (impact reaches other components)
  • Confidentiality impact: Low
  • Integrity impact: Low
  • Availability impact: None
EPSS
0.34% chance of exploitation in 30 days (percentile 20, 2026-11-26)
CWE
CWE-190
Published
Modified

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.

Affected and fixed versions

Package / productAffectedFixedSource
Go github.com/containerd/containerd/v2< 2.0.42.0.4osv
Go github.com/containerd/containerd>= 1.7.0-beta.0, < 1.7.271.7.27, 1.6.38osv
containerd< 1.6.38; >= 1.7.0-beta.0, < 1.7.27; >= 2.0.0-beta.0, < 2.0.4—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2024-40635. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-40635.md
Affected: github.com/containerd/containerd/v2 < 2.0.4; github.com/containerd/containerd >= 1.7.0-beta.0, < 1.7.27
Fixed in: 2.0.4, 1.7.27, 1.6.38

Steps:
1. Search this machine and project for github.com/containerd/containerd/v2 (Go), github.com/containerd/containerd (Go), containerd: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2024-40635 being exploited?

There is no confirmed exploitation: CVE-2024-40635 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.34% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2024-40635?

Medium: CVSS 4.6 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

Which versions are affected by CVE-2024-40635?

github.com/containerd/containerd/v2 < 2.0.4; github.com/containerd/containerd >= 1.7.0-beta.0, < 1.7.27.

Is there a fix for CVE-2024-40635?

Yes. Fixed in 2.0.4, 1.7.27, 1.6.38. Upgrade github.com/containerd/containerd/v2 to 2.0.4 or later. Upgrade github.com/containerd/containerd to one of 1.7.27, 1.6.38 (or later in the same release line).

How do I check if I'm affected by CVE-2024-40635?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors