CVE-2026-15788

WCOW cache mount source selector resolves NTFS junctions outside of cache root

Published Jul 20, 2026 CVSS 4.0 · 5.6 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

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 available
History
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
First Time appeared Moby
Moby buildkit
Vendors & Products Moby
Moby buildkit
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'}

Weaknesses
  • CWE-59

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

Sources

Status
PUBLISHED
Assigner
Docker
Published
Updated
Jul 21, 2026, 12:40 PM
Reserved
Jul 14, 2026, 7:25 PM
Status
Analyzed
Published
Jul 20, 2026, 8:16 PM
Modified
Oct 24, 2026, 8:10 PM