{"answers":{"affected":"8 open source packages ship an affected version, including github.com/containerd/containerd and github.com/containerd/containerd/v2. It affects 2 products.","exploited":"There is no known exploitation of CVE-2024-40635 in the wild and no public exploit code.","fix":"Upgrade github.com/containerd/containerd to a fixed version for your release line: 1.6.38 or 1.7.27.","what":"CVE-2024-40635 is a medium-severity vulnerability in Debian Debian Linux, published on 17 Mar 2025. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-40635 and fix it if it is affected.\n\nWhat it is: CVE-2024-40635 is a medium-severity vulnerability in Debian Debian Linux, published on 17 Mar 2025. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-40635 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/containerd/containerd (Go): affected all versions; fixed in 1.6.38, 1.7.27\n- github.com/containerd/containerd (Go): affected all versions; fixed in 1.6.38\n- github.com/containerd/containerd (Go): affected all versions; fixed in 1.6.38\n- github.com/containerd/containerd (Go): affected from 1.7.0-beta.0; fixed in 1.7.27\n- github.com/containerd/containerd (Go): affected from 1.7.0-beta.0; fixed in 1.7.27\n- github.com/containerd/containerd/v2 (Go): affected all versions; fixed in 2.0.4\n- github.com/containerd/containerd/v2 (Go): affected all versions; fixed in 2.0.4\n- github.com/containerd/containerd/v2 (Go): affected all versions; fixed in 2.0.4\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-40635/ (Markdown: https://insights.sbomify.com/CVE-2024-40635/index.md)","id":"CVE-2024-40635","markdown":"https://insights.sbomify.com/CVE-2024-40635/index.md","name":"CVE-2024-40635","record":{"aliases":["AZL-58844","AZL-58845","AZL-58867","AZL-60893","AZL-60897","BELL-CVE-2024-40635","CLEANSTART-2026-OH61175","CLEANSTART-2026-PU63408","CLEANSTART-2026-YJ28693","DEBIAN-CVE-2024-40635","DLA-4153-1","GHSA-265r-hfxg-fhmg","GO-2025-3528","MGASA-2025-0130","MINI-223v-gm7g-jh83","MINI-22xj-7w64-cqgc","MINI-26gq-j42q-2vxw","MINI-2cvc-crfx-jh2g","MINI-332w-9vfc-c43w","MINI-33vc-hgpm-26ww","MINI-34hj-7p2x-jqcr","MINI-368j-fh4g-f47m","MINI-373g-qm5h-mc2c","MINI-428x-v43v-pjg6","MINI-498j-gj78-chc2","MINI-4qhq-hvjv-7q9m","MINI-4wrw-6824-473w","MINI-5295-3q95-q2ph","MINI-5694-2mcc-qf86","MINI-5cwr-c587-cc4c","MINI-5rcg-jvvq-xrhp","MINI-5v52-p4hf-5v9g","MINI-6xvc-gq2v-g9g9","MINI-775p-2j3c-jmcf","MINI-7cf2-p352-w6c3","MINI-7p7c-m5mv-fcrg","MINI-88rv-j8rh-cp8g","MINI-89v2-2hpm-7j46","MINI-8ffx-2m52-8g97","MINI-8fx4-r259-r2rh","MINI-8gp7-4f2r-w78p","MINI-8hvx-p4pv-h957","MINI-8pjg-3624-gg63","MINI-953w-g9gm-jcjp","MINI-99j6-9p8r-x9r6","MINI-c4qf-r22h-cffw","MINI-cwh9-h676-w3w9","MINI-cxfw-vrrq-h522","MINI-f235-vrgm-mh53","MINI-f4x8-5vvv-cjwc","MINI-f5m3-7c87-m7c6","MINI-f6mx-qvwc-36fw","MINI-f6qp-hchq-5hq9","MINI-f6rv-9cpx-x83x","MINI-fc59-ff28-f594","MINI-fgv8-8hp7-4v33","MINI-fmfj-wr5r-c4rh","MINI-g265-gvf7-fx8r","MINI-g4m2-8hfp-fqh3","MINI-gm3c-884j-h6rv","MINI-gqpf-4fwx-jgpq","MINI-grfc-947w-v943","MINI-gv7p-9854-5q8p","MINI-gx5w-gh29-gqq7","MINI-gxhh-x4c6-m2j4","MINI-gxpj-xcwg-xh5r","MINI-gxv7-v366-8qvr","MINI-j53g-259c-3p6f","MINI-jf44-c76x-vwxq","MINI-jf79-wxpm-37j6","MINI-jp8q-c47w-8c53","MINI-m24w-mpwr-ghgj","MINI-m35f-mxv6-g9rr","MINI-m7mq-5hvx-89qw","MINI-m7qf-8g53-j3fr","MINI-mq8f-g3h6-cmcr","MINI-p4fq-p4xw-9cvf","MINI-p8gc-pvqf-cppx","MINI-q2fg-c2pv-4222","MINI-q5w8-fgx4-gjcv","MINI-qmpp-c7xf-7f5w","MINI-qx5h-c2xg-4fx4","MINI-w8wq-638q-2x57","MINI-wmwf-69jr-gqjq","MINI-wpq5-r274-jhxw","MINI-wqhf-2m3v-h5hr","MINI-wr4x-wrrw-4w32","MINI-x297-jq8f-35g9","MINI-x75h-g73m-664j","MINI-xx77-6fx6-7q4w","OESA-2025-1324","OESA-2025-1325","OESA-2025-1348","OESA-2025-1349","OESA-2025-1350","ROOT-APP-GOBINARY-CVE-2024-40635","SUSE-SU-2025:1345-1","SUSE-SU-2025:1346-1","SUSE-SU-2025:20216-1","SUSE-SU-2025:20459-1","UBUNTU-CVE-2024-40635","USN-7374-1","openSUSE-SU-2025:15039-1","openSUSE-SU-2025:15169-1"],"analysis":{"component_type":"container_or_infrastructure","fix_type":"upgrade","impacts":["privilege_escalation"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"container runtime","requires_auth":"high_privilege","summary":"An integer overflow in containerd allows containers to run as root instead of a specified non-root user, enabling privilege escalation.","user_interaction":"not_required","vuln_class":"integer_overflow"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"debian_linux","vendor":"debian"},{"product":"containerd","vendor":"linuxfoundation"}],"cvss":{"score":4.6,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-190","name":"Integer Overflow or Wraparound"}],"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.","ecosystems":["Go","SUSE:Linux Enterprise Micro 5.1","SUSE:Linux Enterprise Micro 5.2","SUSE:Linux Enterprise Micro 5.3","SUSE:Linux Enterprise Micro 5.4","SUSE:Linux Enterprise Micro 5.5","SUSE:Linux Enterprise Module for Containers 15 SP6","SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5","SUSE:Linux Micro 6.0","SUSE:Linux Micro 6.1","openSUSE:Leap 15.6","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":"2025-04-30","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2025-04-30T16:22:09Z","kind":"github_poc","ref":"https://github.com/yen5004/CVE-2024-40635_POC","stars":0,"title":"Proof of Concept code for proving CVE-2024-40635 vulnerability "}],"tier":"poc_unverified"},"has_fix":true,"headline":"containerd has an integer overflow in User ID handling","id":"CVE-2024-40635","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":"debian:debian_linux","products":["debian:debian_linux"],"type":"integer_overflow","year":"2024"},"n_packages":20,"n_references":4,"next":{"headline":"Basic Auth Credential Leakage to Logs After Fetch Registry Error in Steeltoe.Discovery.Eureka with Peer Awareness","id":"CVE-2024-40636"},"packages":[{"ecosystem":"Go","fixed":["1.6.38","1.7.27"],"introduced":["0","1.7.0-beta.0"],"last_affected":[],"package":"github.com/containerd/containerd","purl":"pkg:golang/github.com/containerd/containerd","source":"GO-2025-3528"},{"ecosystem":"Go","fixed":["1.6.38"],"introduced":["0"],"last_affected":[],"package":"github.com/containerd/containerd","purl":null,"source":"GHSA-265r-hfxg-fhmg"},{"ecosystem":"Go","fixed":["1.6.38"],"introduced":["0"],"last_affected":[],"package":"github.com/containerd/containerd","purl":"pkg:golang/github.com/containerd/containerd","source":"GHSA-265r-hfxg-fhmg"},{"ecosystem":"Go","fixed":["1.7.27"],"introduced":["1.7.0-beta.0"],"last_affected":[],"package":"github.com/containerd/containerd","purl":null,"source":"GHSA-265r-hfxg-fhmg"},{"ecosystem":"Go","fixed":["1.7.27"],"introduced":["1.7.0-beta.0"],"last_affected":[],"package":"github.com/containerd/containerd","purl":"pkg:golang/github.com/containerd/containerd","source":"GHSA-265r-hfxg-fhmg"},{"ecosystem":"Go","fixed":["2.0.4"],"introduced":["0"],"last_affected":[],"package":"github.com/containerd/containerd/v2","purl":null,"source":"GHSA-265r-hfxg-fhmg"},{"ecosystem":"Go","fixed":["2.0.4"],"introduced":["0"],"last_affected":[],"package":"github.com/containerd/containerd/v2","purl":"pkg:golang/github.com/containerd/containerd/v2","source":"GHSA-265r-hfxg-fhmg"},{"ecosystem":"Go","fixed":["2.0.4"],"introduced":["0"],"last_affected":[],"package":"github.com/containerd/containerd/v2","purl":"pkg:golang/github.com/containerd/containerd/v2","source":"GO-2025-3528"},{"ecosystem":"SUSE:Linux Enterprise Micro 5.1","fixed":["1.7.27-150000.123.1"],"introduced":["0"],"last_affected":[],"package":"containerd","purl":"pkg:rpm/suse/containerd\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.1","source":"SUSE-SU-2025:1345-1"},{"ecosystem":"SUSE:Linux Enterprise Micro 5.2","fixed":["1.7.27-150000.123.1"],"introduced":["0"],"last_affected":[],"package":"containerd","purl":"pkg:rpm/suse/containerd\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.2","source":"SUSE-SU-2025:1345-1"},{"ecosystem":"SUSE:Linux Enterprise Micro 5.3","fixed":["1.7.27-150000.123.1"],"introduced":["0"],"last_affected":[],"package":"containerd","purl":"pkg:rpm/suse/containerd\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.3","source":"SUSE-SU-2025:1345-1"},{"ecosystem":"SUSE:Linux Enterprise Micro 5.4","fixed":["1.7.27-150000.123.1"],"introduced":["0"],"last_affected":[],"package":"containerd","purl":"pkg:rpm/suse/containerd\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.4","source":"SUSE-SU-2025:1345-1"},{"ecosystem":"SUSE:Linux Enterprise Micro 5.5","fixed":["1.7.27-150000.123.1"],"introduced":["0"],"last_affected":[],"package":"containerd","purl":"pkg:rpm/suse/containerd\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.5","source":"SUSE-SU-2025:1345-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Containers 15 SP6","fixed":["1.7.27-150000.123.1"],"introduced":["0"],"last_affected":[],"package":"containerd","purl":"pkg:rpm/suse/containerd\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Containers%2015%20SP6","source":"SUSE-SU-2025:1345-1"},{"ecosystem":"SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5","fixed":["1.7.27-16.100.1"],"introduced":["0"],"last_affected":[],"package":"containerd","purl":"pkg:rpm/suse/containerd\u0026distro=SUSE%20Linux%20Enterprise%20Server%20LTSS%20Extended%20Security%2012%20SP5","source":"SUSE-SU-2025:1346-1"},{"ecosystem":"SUSE:Linux Micro 6.0","fixed":["1.7.27-1.1"],"introduced":["0"],"last_affected":[],"package":"containerd","purl":"pkg:rpm/suse/containerd\u0026distro=SUSE%20Linux%20Micro%206.0","source":"SUSE-SU-2025:20216-1"},{"ecosystem":"SUSE:Linux Micro 6.1","fixed":["1.7.27-slfo.1.1_1.1"],"introduced":["0"],"last_affected":[],"package":"containerd","purl":"pkg:rpm/suse/containerd\u0026distro=SUSE%20Linux%20Micro%206.1","source":"SUSE-SU-2025:20459-1"},{"ecosystem":"openSUSE:Leap 15.6","fixed":["1.7.27-150000.123.1"],"introduced":["0"],"last_affected":[],"package":"containerd","purl":"pkg:rpm/opensuse/containerd\u0026distro=openSUSE%20Leap%2015.6","source":"SUSE-SU-2025:1345-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["2.2.0-1.1"],"introduced":["0"],"last_affected":[],"package":"cmctl","purl":"pkg:rpm/opensuse/cmctl\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2025:15039-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["1.7.27-1.1"],"introduced":["0"],"last_affected":[],"package":"containerd","purl":"pkg:rpm/opensuse/containerd\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2025:15169-1"}],"prev":{"headline":"Argo CD Unauthenticated Denial of Service (DoS) Vulnerability via /api/webhook Endpoint","id":"CVE-2024-40634"},"products":["containerd"],"published":"2025-03-17","related":[{"cvss_score":10,"headline":"ProFTPD Improper Access Control","id":"CVE-2015-3306","kev_date_added":"2026-10-08","published":"2015-05-18"},{"cvss_score":9.9,"headline":"RoundCube Webmail Deserialization of Untrusted Data","id":"CVE-2025-49113","kev_date_added":"2026-02-20","published":"2025-06-02"},{"cvss_score":9.8,"headline":"GNU InetUtils Argument Injection","id":"CVE-2026-24061","kev_date_added":"2026-01-26","published":"2026-01-21"},{"cvss_score":9.8,"headline":"Linux Kernel Improper Check for Unusual or Exceptional Conditions","id":"CVE-2025-39682","kev_date_added":"2026-09-18","published":"2025-09-05"},{"cvss_score":9.8,"headline":"Mozilla Firefox Use-After-Free","id":"CVE-2024-9680","kev_date_added":"2024-10-15","published":"2024-10-09"},{"cvss_score":9.8,"headline":"RARLAB UnRAR Directory Traversal","id":"CVE-2022-30333","kev_date_added":"2022-08-09","published":"2022-05-09"},{"cvss_score":9.8,"headline":"Roundcube Webmail SQL Injection","id":"CVE-2021-44026","kev_date_added":"2023-06-22","published":"2021-11-19"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-05-04","vendors":["containerd"]},"summary":"An integer overflow in containerd allows containers to run as root instead of a specified non-root user, enabling privilege escalation.","url":"https://insights.sbomify.com/CVE-2024-40635/"}