# CVE-2024-40635: containerd has an integer overflow in User ID handling

- Severity: Medium 4.6 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.30%, higher than 24% of CVEs (2026-12-01)
- Published: 2025-03-17T21:24:42.000Z
- Modified: 2026-09-10T03:50:06.145Z
- Also known as: GHSA-265r-hfxg-fhmg, GO-2025-3528
- Related: CGA-2ffc-vqv2-m9xj
- Weaknesses: CWE-190
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- containerd containerd: < 1.6.38; >= 1.7.0-beta.0, < 1.7.27; >= 2.0.0-beta.0, < 2.0.4
- github.com/containerd/containerd/v2 (Go): before 2.0.4
- github.com/containerd/containerd (Go): from 1.7.0-beta.0 before 1.7.27; before 1.6.38
- linuxfoundation containerd: before 1.6.38; from 1.7.0 before 1.7.27; from 2.0.0 before 2.0.4
- debian debian_linux: 11.0

## Every score

- GitHub_M: CVSS:3.1 4.6 Medium `CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 4.6 Medium `CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/containerd/containerd/security/advisories/GHSA-265r-hfxg-fhmg> (advisory, vendor-advisory, web)
- <https://github.com/containerd/containerd/commit/05044ec0a9a75232cad458027ca83437aae3f4da> (fix, patch, web)
- <https://github.com/containerd/containerd/commit/1a43cb6a1035441f9aca8f5666a9b3ef9e70ab20> (fix, patch, web)
- <https://github.com/containerd/containerd/commit/cf158e884cfe4812a6c371b59e4ea9bc4c46e51a> (fix, patch, web)
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00005.html> (mailing-list, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-40635> (advisory)
- <https://github.com/containerd/containerd> (package)

## Sources

- CVE List: [CVE-2024-40635](https://www.cve.org/CVERecord?id=CVE-2024-40635), CVE Terms of Use, modified 2025-05-04
- GitHub Advisory Database: [GHSA-265r-hfxg-fhmg](https://github.com/advisories/GHSA-265r-hfxg-fhmg), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2025-3528](https://pkg.go.dev/vuln/GO-2025-3528), CC-BY-4.0, modified 2026-02-04
- NVD: [CVE-2024-40635](https://nvd.nist.gov/vuln/detail/CVE-2024-40635), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-40635 · Whole record: https://cve.day/CVE-2024-40635.json · Rebuilt by cve.day 2026-11-25T22:58:52.302Z
