8.7

CVE-2024-23651: BuildKit possible race condition with accessing subpaths from cache mounts

Modified
AliasesUBUNTU-CVE-2024-23651CGA-37vp-p2q7-rcx6CGA-3gcq-q46c-rrcp
Published 31-01-2024Last modified 29-05-2025

Vulnerability summary

CVE-2024-23651 is a high (CVSS 8.7) vulnerability in moby buildkit. EPSS estimates a 0.91% chance of exploitation in the next 30 days, higher than 60% of scored vulnerabilities.

Priority
Prioritisesevere

Severe, CVSS 8.7 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 03-11-2026)

Source freshness unavailable

How is this decided?
CVSS score
8.7/10
010
High · v3.1 (CVE.org)
EPSS score
0.91%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 14 · Related 28

Timeline

  1. 31-01-2024
    PublishedVulnerability first disclosed.
  2. 29-05-2025
    Last modifiedVulnerability information updated.

Description

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.

CVSS metrics

7 scores · 7 sources · 1 version

EPSS trend

Probability

0.91%

Chance of exploitation in the next 30 days

Percentile

60%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.91% on 04-10-2026

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

Chainguard21 products
  • buildkitd< 0.12.5-r0
  • conftest< 0.49.0-r1
  • conftest-fips< 0.48.0-r2
  • docker< 25.0.2-r0
  • docker-config-mirror-gcr< 25.0.2-r0
Wolfi20 products
  • buildkitd< 0.12.5-r0
  • conftest< 0.49.0-r1
  • docker< 25.0.2-r0
  • docker-config-mirror-gcr< 25.0.2-r0
  • docker-dind< 25.0.2-r0
Alpine4 products
  • buildkit< 0.12.5-r0
  • docker< 25.0.2-r0
  • podman< 4.9.2-r0
  • singularity< 4.1.1-r0
Ubuntu2 products
  • docker.io< 20.10.21-0ubuntu1~18.04.3+esm3 | < 20.10.21-0ubuntu1~20.04.6+esm2 | < 20.10.21-0ubuntu1~22.04.7+esm2 | < 20.10.25+dfsg1-2ubuntu1+esm2
  • docker.io-app< 26.1.3-0ubuntu1~20.04.1+esm1 | < 27.5.1-0ubuntu3~22.04.2 | < 27.5.1-0ubuntu3~24.04.2
Github.com/moby1 product
  • buildkit< 0.12.5
Moby1 product
Mobyproject1 product

7 vendors · 50 products

References

11 links
Show all 11 references