CVE-2024-23651CWE-362

BuildKit possible race condition with accessing subpaths from cache mounts

High · published January 31, 2024

CVSS v3.1
8.7
EPSS
1%
Percentile
59.6
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
8.7 · HIGH
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N
CVSS v4.0
Not supplied
EPSS
0.00911 · 59.6th percentile
Weakness
CWE-362 · Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')
Published
2024-01-31T21:49Z
EPSS history
Timeline
  • 31 JAN 21:49Z
    BuildKit possible race condition with accessing subpaths from cache mounts
    cvelistv5