CVE-2024-40635Linuxfoundation Containerd
High 7.8
Follow: this CVE · Linuxfoundation · Linuxfoundation Containerd We alert you by email or Slack (account required).
- Priority
- 47
- CVSS 3.1
- 7.8
- EPSS
- 0.3% probability of exploitation in 30 days · percentile 20
- Auth required
- Yes
- Published
- Mar 17, 2025
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-190
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Containerd.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | github.com/containerd/containerd |
≥ 1.7.0-beta.0 < 1.7.27 |
1.7.27 |
go get github.com/containerd/containerd@v1.7.27 |
| Go | github.com/containerd/containerd |
< 1.6.38 |
1.6.38 |
go get github.com/containerd/containerd@v1.6.38 |
| Go | github.com/containerd/containerd |
< 1.6.38 |
1.6.38 |
go get github.com/containerd/containerd@v1.6.38 |
| Go | github.com/containerd/containerd |
≥ 1.7.0-beta.0 < 1.7.27 |
1.7.27 |
go get github.com/containerd/containerd@v1.7.27 |
| Go | github.com/containerd/containerd/v2 |
< 2.0.4 |
2.0.4 |
go get github.com/containerd/containerd/v2@v2.0.4 |
| Go | github.com/containerd/containerd/v2 |
< 2.0.4 |
2.0.4 |
go get github.com/containerd/containerd/v2@v2.0.4 |
Per OSV / GitHub Advisories (GHSA-265r-hfxg-fhmg, GO-2025-3528). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| linuxfoundation | containerd | < 1.6.38 |
| linuxfoundation | containerd | ≥ 1.7.0 < 1.7.27 |
| linuxfoundation | containerd | ≥ 2.0.0 < 2.0.4 |
| debian | debian_linux | 11.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Patch
- github.com Patch
- github.com Vendor Advisory
- lists.debian.org Mailing List Third Party Advisory