Intel

AIKIDO-2026-522443

github.com/moby/buildkit is vulnerable to Improper Link Resolution Before File Access

Improper Link Resolution Before File AccessCVE-2026-15788 Published Aug 11, 2026

56

Medium Risk

This Affects:

GOgithub.com/moby/buildkit
0.0.1 - 0.31.1
Fixed in 0.31.2
Are you affected? Scan for Free

TL;DR

BuildKit's cache mount source= selector on Windows Container on Windows workers does not detect NTFS directory junctions placed inside the cache root. A build authored by an untrusted user on a WCOW-configured daemon can point a junction outside the cache and have the daemon resolve it. This lets the build read arbitrary host files reachable to the BuildKit daemon process. The fix normalizes and validates junction targets so reads stay within the cache root.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you run a BuildKit daemon on a Windows Container on Windows (WCOW) worker that accepts builds from untrusted authors.

Background info

github.com/moby/buildkit is vulnerable to Improper Link Resolution Before File Access in versions 0.0.1 - 0.31.1.

How to fix this

Upgrade the github.com/moby/buildkit library to the patch version.