CVE-2024-23651: Mobyproject Buildkit

High severity, CVSS 7.4. EPSS: 0.7% probability of exploitation activity in the next 30 days.

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

The record states a fixed version for the versions it affects. If you run one, update to it.

  • Mobyproject Buildkit, before 0.12.5: fixed in 0.12.5

Affected products

Affected packages

Published 2024-01-31. Last modified 2026-06-17.