CVE-2024-23651

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.

Severity
HIGH
CVSS v3
8.7
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N · source cna
Exploit chance (EPSS)
0.911%
chance of exploitation in the next 30 days
higher than 60.6% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
None public
Exploit references (NVD and CNA): 0
Metasploit modules: 0
Nuclei templates: 0

Weakness

CISA SSVC decision points

Exploitationnone
Automatableno
Technical impacttotal
Scored2025-05-08

Timeline

  1. 2024-01-31Published by the CNA21:49 UTC
  2. 2024-01-31GitHub advisory published (GHSA-m3r6-h7wv-7xxv)same day
  3. 2025-05-08CISA SSVC decision recorded463 days after publication

The timeline shows what already happened. To be told when this CVE changes next, watch it from the API.

Exploit and advisory records

GitHub advisory GHSA-m3r6-h7wv-7xxv, affected packages:

PackageVulnerable versionsFixed in
Go github.com/moby/buildkitbefore 0.12.50.12.5

Affected products

Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.

ProductVulnerable versionsFixed in
mobyproject buildkitbefore 0.12.5fixed in 0.12.50.12.5

Products and versions as NVD and the vendor that published the CVE list them.

References

Get more CVE data from the API.

Free without a key or signup. Pro adds monitoring and higher limits: pricing.

Sources