CVE-2024-23653Mobyproject Buildkit
Critical 9.8 No auth needed
Follow: this CVE · Mobyproject · Mobyproject Buildkit We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- 2.6% probability of exploitation in 30 days · percentile 86
- Auth required
- No
- Published
- Jan 31, 2024
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-863
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Buildkit.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | github.com/moby/buildkit |
< 0.12.5 |
0.12.5 |
go get github.com/moby/buildkit@v0.12.5 |
| Go | github.com/moby/buildkit |
< 0.12.5 |
0.12.5 |
go get github.com/moby/buildkit@v0.12.5 |
Per OSV / GitHub Advisories (GHSA-wr6v-9f75-vh2g, GO-2024-2497). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| mobyproject | buildkit | < 0.12.5 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Vendor Advisory
- github.com Patch Release Notes
- github.com Vendor Advisory