CVE-2024-23651Mobyproject Buildkit
High 7.4 No auth needed
Follow: this CVE · Mobyproject · Mobyproject Buildkit We alert you by email or Slack (account required).
- Priority
- 59
- CVSS 3.1
- 7.4
- EPSS
- 0.7% probability of exploitation in 30 days · percentile 49
- Auth required
- No
- Published
- Jan 31, 2024
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-362
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
What happens
BuildKit is a toolkit for converting source code to build artifacts in an efficient, expressive and repeatable manner. Two malicious build steps running in parallel sharing the same cache mounts with subpaths could cause a race condition that can lead to files from the host system being accessible to the build container. The issue has been fixed in v0.12.5. Workarounds include, avoiding using BuildKit frontend from an untrusted source or building an untrusted Dockerfile containing cache mounts with --mount=type=cache,source=... options.
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-m3r6-h7wv-7xxv, GO-2024-2493). 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