CVE-2024-23651

Aliases:GHSA-m3r6-h7wv-7xxvGO-2024-2493
Modified
Published: 31 Jan 2024, 21:49
Last modified:29 May 2025, 15:03

Vulnerability Summary

Overall Risk (default)
medium
35/100
CVSS Score
8.7 HIGH
v3.1 (cve.org)
EPSS Score
0.55% LOW
1% probability +0.09%
KEV
Not listed
Ransomware
No reports
Public exploits
None found
Dark Web
Not detected

Timeline

31 Jan 2024, 21:49
Published
Vulnerability first disclosed
29 May 2025, 15:03
Last Modified
Vulnerability 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

  • v3.1HIGHScore: 8.7CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N
  • v3.1HIGHScore: 7.4CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N

EPSS Trends

Current EPSS score: 0.55% Percentile: 68%

Techniques & Countermeasures

  • CWE-362Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')

    The product contains a concurrent code sequence that requires temporary, exclusive access to a shared resource, but a timing window exists in which the shared resource can be modified by another code sequence operating concurrently.

Affected Systems

  • github.com/mobybuildkit

    < 0.12.5

  • mobybuildkit

    < 0.12.5

  • mobyprojectbuildkit

    < 0.12.5

References (5)