CVE-2026-15788 WCOW cache mount source selector resolves NTFS junctions outside of cache root

Medium 5.6 Published Updated

An attacker can read arbitrary host files via NTFS junctions in BuildKit cache mounts on Windows Container on Windows workers.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2026-15788?

CVE-2026-15788 is a medium-severity path traversal vulnerability in moby BuildKit, published on 20 Jul 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

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

Weakness: CWE-59

Which versions are affected by CVE-2026-15788?

It affects 1 product.

Products include Mobyproject Buildkit.

How do I fix CVE-2026-15788?

Apply the vendor's patch.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2026-15788 being exploited?

There is no known exploitation of CVE-2026-15788 in the wild and no public exploit code.

Sources

Also known as GHSA-388v-wmr2-g2v2.

Is CVE-2026-15788 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free