{"id":"CVE-2024-23653","published":"2024-01-31T22:03:56Z","modified":"2024-08-23T18:16:30Z","title":"BuildKit interactive containers API does not validate entitlements check","vendor":"moby","product":"buildkit","tier":"tail","description":{"text":"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. \n","provenance":"source","from":"CVE.org"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.04133,"percentile":0.91066,"provenance":"source"},"cwes":[{"id":"CWE-863","name":"Incorrect Authorization"}],"references":[{"url":"https://github.com/moby/buildkit/security/advisories/GHSA-wr6v-9f75-vh2g","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/moby/buildkit/pull/4602","tags":["x_refsource_MISC"]},{"url":"https://github.com/moby/buildkit/releases/tag/v0.12.5","tags":["x_refsource_MISC"]}],"priority":{"score":30.1,"factors":[{"name":"EPSS percentile","points":18.21},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":6.86}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2024-12-13","earliestUrl":"https://github.com/666asd/CVE-2024-23653","repos":[{"name":"666asd/CVE-2024-23653","url":"https://github.com/666asd/CVE-2024-23653","stars":4,"created":"2024-12-13"}]},"first":{"date":"2024-12-13","source":"PoC-in-GitHub","url":"https://github.com/666asd/CVE-2024-23653"},"provenance":"source"},"vendorSlug":"moby","affectedVersions":[{"vendor":"moby","product":"buildkit","versions":["< 0.12.5"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2024-08-23T18:03:21.440665Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/moby/buildkit","vulnerableRanges":["<0.12.5"],"patched":["0.12.5"],"from":["GHSA-wr6v-9f75-vh2g","GO-2024-2497"],"provenance":"source"}],"summary":{"text":"The BuildKit interactive containers API in the moby buildkit product fails to validate entitlements, so a request to run a container with elevated privileges is not checked against the required security.insecure entitlement that normally gates such containers. An attacker who can reach the BuildKit API over the network, with no authentication or user interaction needed, could run a container with elevated privileges, though the entitlement check is only bypassed when that API is exposed to them.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:34:41Z"},"euvd":{"id":"EUVD-2024-0453","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-moby-buildkit-cve-2024-23650","parents":[{"from":"CVE-2024-23650","to":"CVE-2024-23653","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["frontend/gateway/gateway.go"],"commits":["https://github.com/moby/buildkit/commit/481d9c45f473c58537f39694a38d7995cc656987","https://github.com/moby/buildkit/commit/7718bd5c3dc8fc5cd246a30cc41766e7a53c043c","https://github.com/moby/buildkit/commit/5026d95aa3336e97cfe46e3764f52d08bac7a10e","https://github.com/moby/buildkit/commit/92cc595cfb12891d4b3ae476e067c74250e4b71e"],"basis":"rarely changed file"}]}]}}