{"answers":{"affected":"5 open source packages ship an affected version, including github.com/containerd/containerd. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-25173 exists.","fix":"Upgrade github.com/containerd/containerd to a fixed version for your release line: 1.5.18 or 1.6.18.","what":"CVE-2023-25173 is a medium-severity vulnerability in containerd, published on 16 Feb 2023. 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-2023-25173 and fix it if it is affected.\n\nWhat it is: CVE-2023-25173 is a medium-severity vulnerability in containerd, published on 16 Feb 2023. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-25173 exists.\n\nAffected packages and fixed versions:\n- github.com/containerd/containerd (Go): affected all versions; fixed in 1.5.18, 1.6.18\n- github.com/containerd/containerd (Go): affected all versions; fixed in 1.5.18\n- github.com/containerd/containerd (Go): affected all versions; fixed in 1.5.18\n- github.com/containerd/containerd (Go): affected from 1.6.0; fixed in 1.6.18\n- github.com/containerd/containerd (Go): affected from 1.6.0; fixed in 1.6.18\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-2023-25173/ (Markdown: https://insights.sbomify.com/CVE-2023-25173/index.md)","id":"CVE-2023-25173","markdown":"https://insights.sbomify.com/CVE-2023-25173/index.md","name":"CVE-2023-25173","record":{"aliases":["AZL-13673","CLEANSTART-2025-PN33710","DEBIAN-CVE-2023-25173","GHSA-hmfx-3pcx-653p","GO-2023-1574","UBUNTU-CVE-2023-25173","openSUSE-SU-2024:13295-1"],"analysis":{"component_type":"container_or_infrastructure","fix_type":"upgrade","impacts":["privilege_escalation","code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"container runtime","requires_auth":"low_privilege","summary":"Attackers with container access can bypass group restrictions to gain elevated privileges or execute code due to improper supplementary group setup.","user_interaction":"not_required","vuln_class":"privilege_escalation"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"containerd","vendor":"linuxfoundation"}],"cvss":{"score":5.3,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","version":"3.1"},"cwes":[{"id":"CWE-863","name":"Incorrect Authorization"}],"description":"containerd is an open source container runtime. A bug was found in containerd prior to versions 1.6.18 and 1.5.18 where supplementary groups are not set up properly inside a container. If an attacker has direct access to a container and manipulates their supplementary group access, they may be able to use supplementary group access to bypass primary group restrictions in some cases, potentially gaining access to sensitive information or gaining the ability to execute code in that container. Downstream applications that use the containerd client library may be affected as well.\n\nThis bug has been fixed in containerd v1.6.18 and v.1.5.18. Users should update to these versions and recreate containers to resolve this issue. Users who rely on a downstream application that uses containerd's client library should check that application for a separate advisory and instructions. As a workaround, ensure that the `\"USER $USERNAME\"` Dockerfile instruction is not used. Instead, set the container entrypoint to a value similar to `ENTRYPOINT [\"su\", \"-\", \"user\"]` to allow `su` to properly set up supplementary groups.","ecosystems":["Go","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"containerd supplementary groups are not set up properly","id":"CVE-2023-25173","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"privilege_escalation","year":"2023"},"n_packages":6,"n_references":12,"next":{"headline":"Privilege escalation in Intel(R) Chipset Driver Software","id":"CVE-2023-25174"},"packages":[{"ecosystem":"Go","fixed":["1.5.18","1.6.18"],"introduced":["0","1.6.0"],"last_affected":[],"package":"github.com/containerd/containerd","purl":"pkg:golang/github.com/containerd/containerd","source":"GO-2023-1574"},{"ecosystem":"Go","fixed":["1.5.18"],"introduced":["0"],"last_affected":[],"package":"github.com/containerd/containerd","purl":null,"source":"GHSA-hmfx-3pcx-653p"},{"ecosystem":"Go","fixed":["1.5.18"],"introduced":["0"],"last_affected":[],"package":"github.com/containerd/containerd","purl":"pkg:golang/github.com/containerd/containerd","source":"GHSA-hmfx-3pcx-653p"},{"ecosystem":"Go","fixed":["1.6.18"],"introduced":["1.6.0"],"last_affected":[],"package":"github.com/containerd/containerd","purl":null,"source":"GHSA-hmfx-3pcx-653p"},{"ecosystem":"Go","fixed":["1.6.18"],"introduced":["1.6.0"],"last_affected":[],"package":"github.com/containerd/containerd","purl":"pkg:golang/github.com/containerd/containerd","source":"GHSA-hmfx-3pcx-653p"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["3.13.0-2.1"],"introduced":["0"],"last_affected":[],"package":"helm","purl":"pkg:rpm/opensuse/helm\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:13295-1"}],"prev":{"headline":"Discourse vulnerable to Cross-site Scripting - user name displayed on post","id":"CVE-2023-25172"},"products":["containerd"],"published":"2023-02-16","related":[{"cvss_score":9.4,"headline":"containerd CRI — image-config `LABEL` flows to restart-monitor `binary://` logger: host-root command execution from an image pull","id":"CVE-2026-53488","kev_date_added":null,"published":"2026-07-01"},{"cvss_score":8.4,"headline":"containerd CRI checkpoint restore CDI annotation smuggling","id":"CVE-2026-53492","kev_date_added":null,"published":"2026-07-01"},{"cvss_score":8.2,"headline":"containerd: Arbitrary host CRI log file read via symlink following in CRI checkpoint restore","id":"CVE-2026-53489","kev_date_added":null,"published":"2026-07-01"},{"cvss_score":7.6,"headline":"Containerd vulnerable to host filesystem access during image unpack","id":"CVE-2025-47290","kev_date_added":null,"published":"2025-05-20"},{"cvss_score":7.3,"headline":"containerd user ID handling bypass allows runAsNonRoot evasion","id":"CVE-2026-46680","kev_date_added":null,"published":"2026-07-01"},{"cvss_score":7.3,"headline":"containerd affected by a local privilege escalation via wide permissions on CRI directory","id":"CVE-2024-25621","kev_date_added":null,"published":"2025-11-06"},{"cvss_score":6.9,"headline":"containerd CRI server: Host memory exhaustion through Attach goroutine leak","id":"CVE-2025-64329","kev_date_added":null,"published":"2025-11-07"}],"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":"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)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-03-10","vendors":["containerd"]},"summary":"Attackers with container access can bypass group restrictions to gain elevated privileges or execute code due to improper supplementary group setup.","url":"https://insights.sbomify.com/CVE-2023-25173/"}