CVE-2024-23651

HIGH EPSS 51.7%
Published Jan 31, 20242y ago · Modified Jun 17, 20262w ago
7.4 CVSS 3.1
High
Find Similar
Published Jan 31, 2024 2y ago
Last Modified Jun 17, 2026 2w ago

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 Details

Base Score
7.4
Exploitability
2.2
Impact
5.2
Vector string
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
Attack Vector Network
Attack Complexity High
Privileges Required None
User Interaction None
Scope Unchanged
Confidentiality High
Integrity High
Availability None

Threat Intelligence

EPSS Exploit Probability
51.7% percentile
Exploit & Patch Status
No Known Exploit
Patch Available

Weaknesses 1

CWE-362

Affected Products 1

VendorProductVersionRange
mobyprojectbuildkit* <0.12.5

References 3

  • github.com https://github.com/moby/buildkit/pull/4604
    PatchVendor Advisory
  • github.com https://github.com/moby/buildkit/releases/tag/v0.12.5
    PatchRelease Notes
  • github.com https://github.com/moby/buildkit/security/advisories/GHSA-m3r6-h7wv-7xxv
    Vendor Advisory

Remediation

  • github.com https://github.com/moby/buildkit/pull/4604
    PatchVendor Advisory
  • github.com https://github.com/moby/buildkit/releases/tag/v0.12.5
    PatchRelease Notes