VDB

CVE-2024-23652

CVE-2024-23652 PUBLISHED CVSS 10 CRITICAL

BuildKit possible host system access from mount stub cleaner

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. A malicious BuildKit frontend or Dockerfile using RUN --mount could trick the feature that removes empty files created for the mountpoints into removing a file outside the container, from the host system. The issue has been fixed in v0.12.5. Workarounds include avoiding using BuildKit frontends from an untrusted source or building an untrusted Dockerfile containing RUN --mount feature.

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
buildkitdWolfi0.12.5-r0
kanikoWolfi1.20.1-r0
dockerAlpine25.0.2-r0
scorecardChainguard4.13.1-r4
conftestChainguard0.49.0-r1
buildkitdChainguard0.12.5-r0
trivyWolfi0.49.0-r1
datadog-agent-fipsChainguard7.50.3-r1
datadog-agentWolfi7.50.3-r1

Risk scores

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

Affected products

VendorProductVersions
mobybuildkit< 0.12.5
wolfibuildkitd0
wolfikaniko0
alpinedocker0
chainguardscorecard0
chainguardconftest0
chainguardbuildkitd0
wolfitrivy0
chainguarddatadog-agent-fips0
wolfidatadog-agent0
mobybuildkit0
chainguardskaffold0
alpinepodman0
wolfiguac0
wolfiskaffold0
chainguardtrivy0
wolfidocker0
wolficonftest0
alpinesingularity0
chainguardconftest-fips0

…and 12 more

Timeline

  • Jan 31, 2024 CVE Published
  • Feb 8, 2024 EPSS Score (30 in total, the first dated here)
  • Feb 8, 2024 PoC Published
  • Oct 4, 2024 Coalition ESS Score (11 in total, the first dated here)
  • Oct 12, 2025 CVE Updated
  • 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-23652
vulnetix vdb fixes CVE-2024-23652

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-23652/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 ›