{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-40635","id":"CVE-2024-40635","title":"containerd has an integer overflow in User ID handling","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 ","descriptionLong":"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.","published":"2025-03-17T21:32:37.894Z","updated":"2026-10-28T02:30:20.573280896Z","reserved":"2024-07-08T16:13:15.511Z","status":"Analyzed","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":4.6,"vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:N","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"3.1","score":4.6,"vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:N","rating":"medium","source":"GitHub_M"},{"version":"3.1","score":4.6,"vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:N","rating":"medium","source":"github.com"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":4.6,"vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:N","rating":"medium","source":"OSV"},{"version":"3.1","score":4.6,"vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:N","rating":"medium","source":"GitHub"}],"rating":"medium","products":["containerd"],"affectedProducts":[{"vendor":"containerd","product":"containerd","defaultStatus":null,"versions":[{"version":"< 1.6.38","status":"affected"},{"version":">= 1.7.0-beta.0, < 1.7.27","status":"affected"},{"version":">= 2.0.0-beta.0, < 2.0.4","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"Go","name":"github.com/containerd/containerd/v2","purl":"pkg:golang/github.com/containerd/containerd/v2","ranges":["<2.0.4"],"fixed":["2.0.4"],"advisory":"GHSA-265r-hfxg-fhmg"},{"ecosystem":"Go","name":"github.com/containerd/containerd","purl":"pkg:golang/github.com/containerd/containerd","ranges":[">=1.7.0-beta.0 <1.7.27","<1.6.38"],"fixed":["1.7.27","1.6.38"],"advisory":"GHSA-265r-hfxg-fhmg"}],"cwes":["CWE-190"],"aliases":["GHSA-265r-hfxg-fhmg","GO-2025-3528"],"references":[{"url":"https://github.com/containerd/containerd/security/advisories/GHSA-265r-hfxg-fhmg","tags":["x_refsource_CONFIRM","Vendor Advisory","advisory","web"]},{"url":"https://github.com/containerd/containerd/commit/05044ec0a9a75232cad458027ca83437aae3f4da","tags":["x_refsource_MISC","Patch","fix","web"]},{"url":"https://github.com/containerd/containerd/commit/1a43cb6a1035441f9aca8f5666a9b3ef9e70ab20","tags":["x_refsource_MISC","Patch","fix","web"]},{"url":"https://github.com/containerd/containerd/commit/cf158e884cfe4812a6c371b59e4ea9bc4c46e51a","tags":["x_refsource_MISC","Patch","fix","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00005.html","tags":["Mailing List","Third Party Advisory","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/40xxx/CVE-2024-40635.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-40635","tags":["advisory"]},{"url":"https://github.com/containerd/containerd","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00304,"epssPercentile":0.23646,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-40635","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-40635","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-40635","ok":true,"note":"2 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-265r-hfxg-fhmg","ok":true,"note":"GHSA-265r-hfxg-fhmg"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-40635","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":["docker"],"critical":[],"attention":null}