{"answers":{"affected":"3 open source packages ship an affected version, including github.com/moby/buildkit. It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-23653 in the wild and no public exploit code.","fix":"Upgrade github.com/moby/buildkit to 0.12.5 or later.","what":"CVE-2024-23653 is a critical vulnerability in moby buildkit, published on 31 Jan 2024."},"fix_prompt":"Check this codebase for CVE-2024-23653 and fix it if it is affected.\n\nWhat it is: CVE-2024-23653 is a critical vulnerability in moby buildkit, published on 31 Jan 2024. \nExploitation: There is no known exploitation of CVE-2024-23653 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/moby/buildkit (Go): affected all versions; fixed in 0.12.5\n- github.com/moby/buildkit (Go): affected all versions; fixed in 0.12.5\n- github.com/moby/buildkit (Go): affected all versions; fixed in 0.12.5\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-23653/ (Markdown: https://insights.sbomify.com/CVE-2024-23653/index.md)","id":"CVE-2024-23653","markdown":"https://insights.sbomify.com/CVE-2024-23653/index.md","name":"CVE-2024-23653","record":{"aliases":["AZL-34078","AZL-34079","AZL-34081","AZL-34084","AZL-34998","AZL-35433","AZL-35439","BELL-CVE-2024-23653","CLEANSTART-2025-HP29789","CLEANSTART-2026-XQ25414","GHSA-wr6v-9f75-vh2g","GO-2024-2497","UBUNTU-CVE-2024-23653","openSUSE-SU-2024:13688-1","openSUSE-SU-2024:14571-1"],"analysis":null,"analysis_generated_by":null,"assigner":"GitHub_M","cpe":[{"product":"buildkit","vendor":"mobyproject"}],"cvss":{"score":9.8,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-863","name":"Incorrect Authorization"}],"description":"BuildKit is a toolkit for converting source code to build artifacts in an efficient, expressive and repeatable manner. In addition to running containers as build steps, BuildKit also provides APIs for running interactive containers based on built images. It was possible to use these APIs to ask BuildKit to run a container with elevated privileges. Normally, running such containers is only allowed if special `security.insecure` entitlement is enabled both by buildkitd configuration and allowed by the user initializing the build request. The issue has been fixed in v0.12.5 . Avoid using BuildKit frontends from untrusted sources.","ecosystems":["Go","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":"2024-12-13","github_poc":1,"max_poc_stars":5,"metasploit":0,"nuclei":0,"refs":[{"date":"2024-12-13T18:27:39Z","kind":"github_poc","ref":"https://github.com/666asd/CVE-2024-23653","stars":5,"title":null}],"tier":"poc_unverified"},"has_fix":true,"headline":"BuildKit interactive containers API does not validate entitlements check","id":"CVE-2024-23653","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":null,"year":"2024"},"n_packages":5,"n_references":3,"next":{"headline":"discourse-ai admin-initiated SSRF when interacting with AI services","id":"CVE-2024-23654"},"packages":[{"ecosystem":"Go","fixed":["0.12.5"],"introduced":["0"],"last_affected":[],"package":"github.com/moby/buildkit","purl":null,"source":"GHSA-wr6v-9f75-vh2g"},{"ecosystem":"Go","fixed":["0.12.5"],"introduced":["0"],"last_affected":[],"package":"github.com/moby/buildkit","purl":"pkg:golang/github.com/moby/buildkit","source":"GHSA-wr6v-9f75-vh2g"},{"ecosystem":"Go","fixed":["0.12.5"],"introduced":["0"],"last_affected":[],"package":"github.com/moby/buildkit","purl":"pkg:golang/github.com/moby/buildkit","source":"GO-2024-2497"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["0.12.5-2.1"],"introduced":["0"],"last_affected":[],"package":"buildkit","purl":"pkg:rpm/opensuse/buildkit\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:13688-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["24.0.9_ce-4.1"],"introduced":["0"],"last_affected":[],"package":"docker-stable","purl":"pkg:rpm/opensuse/docker-stable\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:14571-1"}],"prev":{"headline":"BuildKit possible host system access from mount stub cleaner","id":"CVE-2024-23652"},"products":["buildkit"],"published":"2024-01-31","related":[{"cvss_score":10,"headline":"BuildKit possible host system access from mount stub cleaner","id":"CVE-2024-23652","kev_date_added":null,"published":"2024-01-31"},{"cvss_score":8.7,"headline":"BuildKit possible race condition with accessing subpaths from cache mounts","id":"CVE-2024-23651","kev_date_added":null,"published":"2024-01-31"},{"cvss_score":8.4,"headline":"BuildKit vulnerable to malicious frontend causing file escape outside of storage root","id":"CVE-2026-33747","kev_date_added":null,"published":"2026-03-27"},{"cvss_score":8.2,"headline":"BuildKit Git URL subdir component can cause access to restricted files","id":"CVE-2026-33748","kev_date_added":null,"published":"2026-03-27"},{"cvss_score":6.9,"headline":"Malicious client can bypass destination directory validation on local sources upload","id":"CVE-2026-15789","kev_date_added":null,"published":"2026-07-21"},{"cvss_score":6.5,"headline":"Git source checkout from a bundle file could lead to command injection","id":"CVE-2026-15793","kev_date_added":null,"published":"2026-07-21"}],"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)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2024-08-23","vendors":["moby"]},"summary":null,"url":"https://insights.sbomify.com/CVE-2024-23653/"}