Read the docs
TI-2024-15670 Aliases CVE-2024-23651GHSA-m3r6-h7wv-7xxv

BuildKit possible race condition with accessing subpaths from cache mounts

Priority MEDIUM 41CWE-362Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
High
Impact type
—
Confidentiality · integrity · availability
High · High · None
Fix status
Partial Red Hat: 2 without a fix

Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat.

Summary

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00911 60th percentileScored 2026-11-07
Fix Partial buildkit (moby): 0.12.5github.com/moby/buildkit (Go): 0.12.5Red Hat: 2 without a fix

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
mobybuildkitbefore 0.12.50.12.5Patch availableCNA
—github.com/moby/buildkit (Go)before 0.12.50.12.5Patch availableGHSA-m3r6-h7wv-7xxv
  • buildkit Vendormoby Affected before 0.12.5 Fixed in 0.12.5 Patch available CNA
  • github.com/moby/buildkit (Go) Vendor— Affected before 0.12.5 Fixed in 0.12.5 Patch available GHSA-m3r6-h7wv-7xxv

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:mobyproject:buildkit:*:*:*:*:*:*:*:*before 0.12.5VulnerableMobyproject
  • cpe:2.3:a:mobyproject:buildkit:*:*:*:*:*:*:*:* Versions before 0.12.5 Vulnerable ·Mobyproject

Remediation

  • Fix · CNA buildkit (moby) Fixed in 0.12.5
  • Fix · GHSA-m3r6-h7wv-7xxv github.com/moby/buildkit (Go) Fixed in 0.12.5 Advisory →

Vendor assessments

Red Hat

Red Hat rating: Moderate. Red Hat's page for this CVE →

ProductStatusPlan or fix
Red Hat OpenShift Dev SpacesAffectedNo fix yet
Red Hat Quay 3AffectedNo fix yet
Not affected: 7 products
  • OpenShift Developer Tools and Services
  • OpenShift Serverless
  • OpenShift Service Mesh 2
  • Red Hat Ansible Automation Platform 1.2
  • Red Hat Enterprise Linux 8
  • Red Hat Enterprise Linux 9
  • Red Hat OpenShift Container Platform 4

Timeline

  1. 2026-10-02 Threatist record created from CVE-2024-23651
  2. 2026-10-03 Alias added: GHSA-m3r6-h7wv-7xxv

References

  • TI-2026-14229 Tar extraction in moby/go-archive can write outside the destination directory via link following CVSS 4.0HIGH 7.1
  • TI-2021-12512 Moby HyperKit uninitialized memory use in virtio-sock pci_vtsock_proc_tx CVSS 3.1HIGH 7.1
  • TI-2024-27462 Moby authz zero length regression CVSS 3.1CRITICAL 10.0
  • TI-2024-15672 BuildKit interactive containers API does not validate entitlements check CVSS 3.1CRITICAL 9.8
  • TI-2024-15671 BuildKit possible host system access from mount stub cleaner CVSS 3.1CRITICAL 10.0
  • TI-2026-26365 Moby: AuthZ plugin bypass with oversized request body CVSS 3.1HIGH 8.8
See all 57 →

Sources