Symlink Attack Affecting github.com/moby/buildkit/executor/oci package, versions <0.31.2


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.41% (33rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-GITHUBCOMMOBYBUILDKITEXECUTOROCI-18165790
  • published22 Jul 2026
  • disclosed20 Jul 2026
  • creditJUNYI LIU

Introduced: 20 Jul 2026

CVE-2026-15788  (opens in a new tab)
CWE-59  (opens in a new tab)

How to fix?

Upgrade github.com/moby/buildkit/executor/oci to version 0.31.2 or higher.

Overview

Affected versions of this package are vulnerable to Symlink Attack in the WCOW cache mount source selector, which resolves NTFS junctions in the cache mount source path outside the intended cache root. A user who can author a build run by the daemon can read arbitrary host files reachable to the BuildKit daemon process by pointing a cache mount source selector through an NTFS junction that escapes the cache root. Exploitation affects only BuildKit daemons configured for Windows Containers on Windows (WCOW) and requires the daemon to run a build from an untrusted source.

CVSS Base Scores

version 4.0
version 3.1