CVE-2024-23653
BuildKit interactive containers API does not validate entitlements check
Reported by github_m · Published January 31, 2024
github.com/moby/buildkit is fixed in 0.12.5 (Go Modules)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| github.com/moby/buildkit | Go Modules | 0.12.5 |
| datadog-agent | Chainguard | 7.50.3-r1 |
| trivy | Chainguard | 0.49.0-r1 |
| docker | Alpine | 25.0.2-r0 |
| skaffold | Wolfi | 2.11.0-r0 |
| conftest | Wolfi | 0.49.0-r1 |
| conftest | Chainguard | 0.49.0-r1 |
| guac | Chainguard | 0.4.0-r1 |
| kubescape | Wolfi | 3.0.3-r7 |
| docker | Amazon Linux | 25.0.3-1.amzn2023.0.1 |
| docker | Wolfi | 25.0.2-r0 |
| buildkitd | Wolfi | 0.12.5-r0 |
16 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| moby | buildkit | < 0.12.5 |
| chainguard | datadog-agent | 0 |
| chainguard | trivy | 0 |
| alpine | docker | 0 |
| wolfi | skaffold | 0 |
| wolfi | conftest | 0 |
| chainguard | conftest | 0 |
| mobyproject | buildkit | 0 |
| chainguard | guac | 0 |
| wolfi | kubescape | 0 |
| amazon:2023 | docker | 0 |
| wolfi | docker | 0 |
| wolfi | buildkitd | 0 |
| chainguard | buildkitd | 0 |
| wolfi | trivy | 0 |
| alpine | podman | 0 |
| alpine | singularity | 0 |
| wolfi | datadog-agent | 0 |
| chainguard | skaffold | 0 |
| chainguard | scorecard | 0 |
…and 13 more
Timeline
- Jan 31, 2024 CVE Published
- Jan 31, 2024 Fix PR Merged
- Feb 8, 2024 EPSS Score (30 in total, the first dated here)
- Feb 8, 2024 PoC Published
- Oct 4, 2024 Coalition ESS Score (7 in total, the first dated here)
- Jan 17, 2026 Security Advisory (42 in total, the first dated here)
- Nov 22, 2026 Distribution Patch (32 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-23653
vulnetix vdb fixes CVE-2024-23653
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-23653/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/moby/buildkit/security/advisories/GHSA-wr6v-9f75-vh2g x_refsource_CONFIRM
- https://github.com/moby/buildkit/pull/4602 x_refsource_MISC
- https://github.com/moby/buildkit/releases/tag/v0.12.5 x_refsource_MISC
- CVE-2024-23653 exploit
- https://github.com/advisories/GHSA-wr6v-9f75-vh2g advisory