Vulnerabilities

CVE-2024-40635

High 7.8 CVSS 3.1

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.

Description as published by the source, in English.

Key facts

Published
2025-03-17
Last modified
2026-06-17
Assigned by
security-advisories@github.com
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Scored by
nvd@nist.gov (NVD Primary)
Probability of exploitation
0.3 % higher than 20 % of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15
Fix available
Yes, see references

Affected products

Vendor Product Versions Status
Debian Debian Linux 11.0 Affected
github.com/containerd containerd (Go) < 1.6.38 Affected
github.com/containerd containerd (Go) ≥ 1.7.0-beta.0, < 1.7.27 Affected
github.com/containerd/containerd v2 (Go) < 2.0.4 Affected
Linuxfoundation Containerd < 1.6.38 Affected
Linuxfoundation Containerd ≥ 1.7.0, < 1.7.27 Affected
Linuxfoundation Containerd ≥ 2.0.0, < 2.0.4 Affected

Weakness type

  • CWE-190: Integer Overflow or Wraparound

    The product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. This occurs when an integer value is i…

References

Related at Berigo

Articles

Does this affect you?

A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.

Check your asset list Browse all vulnerabilities