CVE-2024-40635

MEDIUM
Published Mar 17, 2025 Modified Oct 2, 2025 CWE-190

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.

Is your site exposed to CVE-2024-40635?

Run a free security scan — no signup, results in seconds.

CVSS v3.1 Score

4.6
MEDIUM
CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:N

Weakness Type (CWE)

CWE-190 Integer Overflow

Affected Products

Vendor Product
linuxfoundation containerd
linuxfoundation containerd
linuxfoundation containerd
debian debian_linux

References

Frequently Asked Questions

What is CVE-2024-40635? +
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. It has a CVSS v3.1 base score of 4.6 (MEDIUM).
How severe is CVE-2024-40635? +
CVE-2024-40635 has a CVSS v3.1 score of 4.6 out of 10, rated MEDIUM. This is a medium-severity vulnerability that should be remediated as part of regular maintenance.
What products are affected by CVE-2024-40635? +
CVE-2024-40635 affects products from debian, linuxfoundation, specifically: containerd, debian_linux. Check the affected products table above for specific version ranges.
How do I check if I'm vulnerable to CVE-2024-40635? +
You can use Secably's free Website Scanner to check your website for known vulnerabilities. For infrastructure scanning, use the Port Scanner to identify exposed services that may be affected. Check the vendor advisories linked above for specific patch and version information.

Related Vulnerabilities

Don't wait for an exploit

Scan your website for vulnerabilities like CVE-2024-40635 — free, no signup required.