Vulnerability · Published Mar 17, 2025 · Assigned by GitHub_M
CVE-2024-40635containerd has an integer overflow in User ID handling
Medium 4.6
In plain English
A medium-severity integer overflow in containerd from containerd. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 23% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | containerd | 1.6.20~ds1-1+deb12u2 | DEBIAN-CVE-2024-40635 |
| Debian:13 | containerd | 1.7.24~ds1-6 | DEBIAN-CVE-2024-40635 |
| Debian:14 | containerd | 1.7.24~ds1-6 | DEBIAN-CVE-2024-40635 |
| Go | github.com/containerd/containerd | 1.7.27 | GHSA-265r-hfxg-fhmg |
| Go | github.com/containerd/containerd | 1.6.38 | GHSA-265r-hfxg-fhmg |
| Go | github.com/containerd/containerd | 1.6.38, 1.7.27 | GO-2025-3528 |
| Go | github.com/containerd/containerd/v2 | 2.0.4 | GHSA-265r-hfxg-fhmg |
| Go | github.com/containerd/containerd/v2 | 2.0.4 | GO-2025-3528 |
| Ubuntu:22.04:LTS | containerd | 1.6.12-0ubuntu1~22.04.8 | USN-7374-1 |
| Ubuntu:22.04:LTS | containerd | 1.6.12-0ubuntu1~22.04.8 | UBUNTU-CVE-2024-40635 |
| Ubuntu:22.04:LTS | containerd-app | 1.7.24-0ubuntu1~22.04.2 | USN-7374-1 |
| Ubuntu:22.04:LTS | containerd-app | 1.7.24-0ubuntu1~22.04.2 | UBUNTU-CVE-2024-40635 |
| Ubuntu:24.04:LTS | containerd-app | 1.7.24-0ubuntu1~24.04.2 | UBUNTU-CVE-2024-40635 |
| Ubuntu:24.04:LTS | containerd-app | 1.7.24-0ubuntu1~24.04.2 | USN-7374-1 |
| Ubuntu:25.10 | containerd-app | 2.0.2-0ubuntu2 | UBUNTU-CVE-2024-40635 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| containerd | containerd | < 1.6.38>= 1.7.0-beta.0, < 1.7.27>= 2.0.0-beta.0, < 2.0.4 |
Weakness: CWE-190 · Vector: CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:N
References
- https://github.com/containerd/containerd/security/advisories/GHSA-265r-hfxg-fhmg x_refsource_CONFIRM
- https://github.com/containerd/containerd/commit/05044ec0a9a75232cad458027ca83437aae3f4da x_refsource_MISC
- https://github.com/containerd/containerd/commit/1a43cb6a1035441f9aca8f5666a9b3ef9e70ab20 x_refsource_MISC
- https://github.com/containerd/containerd/commit/cf158e884cfe4812a6c371b59e4ea9bc4c46e51a x_refsource_MISC
- https://lists.debian.org/debian-lts-announce/2025/05/msg00005.html