Description
BuildKit's cache mount source= selector on Windows Container on Windows (WCOW) workers does not detect NTFS directory junctions placed inside the cache root. A build authored by an untrusted user on a WCOW-configured BuildKit daemon can read arbitrary host files reachable to the BuildKit daemon process.
Published: 2026-07-20
Score: 5.6 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability lies in BuildKit’s cache mount source= selector when operating on Windows Container on Windows (WCOW) workers. It fails to detect NTFS directory junctions that exist inside the cache root, allowing a build authored by an untrusted user to cause the BuildKit daemon process to resolve these junctions to locations outside the intended cache directory. As a result, the build can read arbitrary host files that are reachable to the BuildKit daemon process, exposing potentially sensitive data such as credentials, configuration files, or other secrets. The flaw is a classic example of an “Unrestricted File Disclosure”.

Affected Systems

The affected product is moby:BuildKit, specifically any BuildKit deployment configured to run WCOW workers. No specific version information is provided in the advisory; the issue applies to any BuildKit installation where the cache mount source= selector is used on Windows hosts.

Risk and Exploitability

The CVSS score of 5.6 indicates moderate severity, and the EPSS score is < 1%, indicating a very low probability of exploitation. The vulnerability is not listed in CISA’s KEV catalog. Based on the description, the attack vector is inferred to be local or untrusted build submission: an attacker who can influence the build source or provide build daemon to read unintended host files. No privilege escalation or remote code execution is described; the primary risk is the disclosure of host files.

Generated by OpenCVE AI on July 30, 2026 at 18:38 UTC.

Remediation

Vendor Workaround

Use trusted build sources.


OpenCVE Recommended Actions

  • Configure BuildKit to only accept builds from trusted sources; treat all build submissions from untrusted users with caution.
  • If a patched BuildKit version is available, update the BuildKit daemon to that version to remove the vulnerability.
  • Restrict the filesystem access of the BuildKit daemon process, for example by running it with reduced privileges or using user‑namespace isolation, so that even if a junction is resolved it cannot read sensitive host files.

Generated by OpenCVE AI on July 30, 2026 at 18:38 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 21 Jul 2026 13:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Mon, 20 Jul 2026 22:30:00 +0000

Type Values Removed Values Added
First Time appeared Moby
Moby buildkit
Vendors & Products Moby
Moby buildkit

Mon, 20 Jul 2026 20:00:00 +0000

Type Values Removed Values Added
Description BuildKit's cache mount source= selector on Windows Container on Windows (WCOW) workers does not detect NTFS directory junctions placed inside the cache root. A build authored by an untrusted user on a WCOW-configured BuildKit daemon can read arbitrary host files reachable to the BuildKit daemon process.
Title WCOW cache mount source selector resolves NTFS junctions outside of cache root
Weaknesses CWE-59
References
Metrics cvssV4_0

{'score': 5.6, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: Docker

Published:

Updated: 2026-07-21T12:40:56.055Z

Reserved: 2026-07-14T19:25:38.521Z

Link: CVE-2026-15788

cve-icon Vulnrichment

Updated: 2026-07-21T12:40:21.632Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-30T18:45:06Z

Weaknesses
  • CWE-59

    Improper Link Resolution Before File Access ('Link Following')