VDB

CVE-2024-23651

CVE-2024-23651 PUBLISHED CVSS 8.7 HIGH

BuildKit possible race condition with accessing subpaths from cache mounts

Reported by github_m · Published January 31, 2024

github.com/moby/buildkit is fixed in 0.12.5 (Go Modules)

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
github.com/moby/buildkitGo Modules0.12.5
conftestChainguard0.49.0-r1
datadog-agentWolfi7.50.3-r1
dockerAmazon Linux25.0.3-1.amzn2023.0.1
datadog-agentChainguard7.50.3-r1
skaffoldChainguard2.11.0-r0
guacWolfi0.4.0-r1
buildkitAlpine0.12.5-r0
conftest-fipsChainguard0.48.0-r2
dockerChainguard25.0.2-r0
kubescapeChainguard3.0.3-r7
kanikoWolfi1.20.1-r0

15 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 3.1
8.7
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N

Affected products

VendorProductVersions
mobybuildkit< 0.12.5
chainguardconftest0
wolfidatadog-agent0
amazon:2023docker0
chainguarddatadog-agent0
chainguardskaffold0
wolfiguac0
alpinebuildkit0
chainguardconftest-fips0
chainguarddocker0
chainguardkubescape0
wolfikaniko0
chainguardbuildkitd0
chainguardkaniko0
chainguardscorecard0
chainguardzot0
wolfiscorecard0
chainguardtrivy0
wolfidocker0
wolfikubescape0

…and 12 more

Timeline

  • Jan 31, 2024 CVE Published
  • Jan 31, 2024 Fix PR Merged
  • Feb 8, 2024 EPSS Score (30 in total, the first dated here)
  • Feb 8, 2024 PoC Published
  • Oct 4, 2024 Coalition ESS Score (16 in total, the first dated here)
  • Jan 17, 2026 Security Advisory (41 in total, the first dated here)
  • Nov 22, 2026 Distribution Patch (32 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2024-23651
vulnetix vdb fixes CVE-2024-23651

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-23651/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›