Live threats

All CVEs / Mobyproject

CVE-2024-23651Mobyproject Buildkit

High 7.4 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Buildkit.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
mobyprojectbuildkit< 0.12.5

Official sources

References

Links published by the sources. Open them with care.