CVE-2024-40635

containerd has an integer overflow in User ID handling

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.

Category

4.6
CVSS
Severity: Medium
CVSS 3.1 •
EPSS 0.01%
Affected: containerd containerd
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2024-40635?
CVE-2024-40635 has been scored as a medium severity vulnerability.
How to fix CVE-2024-40635?
To fix CVE-2024-40635, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2024-40635 being actively exploited in the wild?
As for now, there are no information to confirm that CVE-2024-40635 is being actively exploited. According to its EPSS score, there is a ~0% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2024-40635?
CVE-2024-40635 affects containerd containerd.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.