CVE-2024-40635: Root execution through oversized user IDs in containerd
- Vendors
- Linux FoundationDebian Project
CVE-2024-40635 is an integer-handling vulnerability in containerd before the fixes released in versions 1.6.38, 1.7.27, and 2.0.4. A container image USER directive containing a numeric UID or UID:GID value exceeding the maximum signed 32-bit integer can cause the container to execute as root instead of the intended non-root user. An oversized numeric user value can be interpreted as a username; a crafted image can map that username to UID 0 through its user database. This undermines non-root execution requirements and can bypass Kubernetes runAsNonRoot enforcement.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation causes a container expected to run as a non-root user to execute with UID 0, violating workload isolation policies and increasing privileges within the container. The resulting access depends on the container's capabilities, mounts, and other runtime restrictions. Host privilege escalation or container escape is not established by this vulnerability alone.
Mitigation
If you can’t patch tonight, do this now.
Use only trusted container images and restrict image import permissions to trusted users. In Kubernetes, explicitly enforce a nonzero numeric runAsUser in the Pod securityContext to override the image USER directive rather than relying solely on runAsNonRoot.
Remediation
Patch, then assume compromise.
Upgrade containerd to the fixed release for the deployed branch: 1.6.38, 1.7.27, or 2.0.4. For vendor-managed products that bundle containerd, apply the vendor update incorporating the fix.
Exploits
1 exploit validated by Mallory's analysis.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2024-40635 exploited in the wild?
- As of Nov 7, 2026, Mallory has no reports of CVE-2024-40635 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2024-40635?
- Yes. Mallory tracks 1 public exploit or proof of concept for CVE-2024-40635, the earliest disclosed Apr 30, 2025.
- Is there a patch for CVE-2024-40635?
- Upgrade containerd to the fixed release for the deployed branch: 1.6.38, 1.7.27, or 2.0.4. For vendor-managed products that bundle containerd, apply the vendor update incorporating the fix.
- What products are affected by CVE-2024-40635?
- Linux Foundation Containerd and Debian Project Debian Linux.
- How severe is CVE-2024-40635?
- CVE-2024-40635 has a CVSS v3.1 score of 7.8 (High) and an EPSS score of 0.30% (23rd percentile) as of Nov 7, 2026.
Recent activity
4 sources tracked across advisories and community write-ups. News coverage will land here when it surfaces.
No news coverage yet. Advisories and community discussion only.