Skip to main content

BuildKit CVE-2026-15788

| EUVDEUVD-2026-46074 MEDIUM
Improper Link Resolution Before File Access (CWE-59)
2026-07-20 Docker
5.6
CVSS 4.0 · Vendor: Docker
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Identify WCOW-configured BuildKit daemon
  2. Delivery
    Craft Dockerfile with NTFS junction in cache mount
  3. Exploit
    Submit build to daemon
  4. Install
    Build execution triggered (operator or CI)
  5. C2
    Daemon follows NTFS junction to host path
  6. Execute
    Arbitrary host files read and returned to build context
  7. Impact
    Sensitive data exfiltrated

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Symlink resolution safety
Exploitation Conditions

The target BuildKit daemon must be explicitly configured to use Windows Container on Windows (WCOW) workers - this is not the default BuildKit deployment mode and requires deliberate Windows-specific setup. The attacking build must use the --mount=type=cache,source=<name> directive in a RUN instruction so that BuildKit accesses the cache root during build execution. The attacker must have the ability to author and submit builds to the target daemon (PR:N in the CVSS 4.0 vector confirms no build-authoring privilege is required beyond access to submit). A human operator or automated trigger must execute the build (UI:A), meaning the attack is not fire-and-forget against a passive target. Exploitation is limited to files reachable by the BuildKit daemon process's Windows service account - secrets outside that process's read permissions are not exposed. Linux-based and macOS-based BuildKit workers are entirely unaffected, and deployments where all build authors are trusted parties face no realistic risk.

Impact

The CVSS 4.0 base score of 5.6 (Medium) reflects a real but constrained attack surface. The AV:L (local) metric indicates the attacker must have some form of access to submit builds to the target daemon - typically via the daemon socket - rather than exploiting a remotely reachable network service. AT:P confirms specific prerequisites: the daemon must be configured for WCOW workers, which is a non-default Windows-specific deployment mode. UI:A (active user interaction) requires someone to execute or accept the malicious build. The VC:H (high confidentiality impact on vulnerable component) is significant: if exploited, an attacker can exfiltrate any host file the daemon process can read, which in practice may include credentials, secrets, private keys, or configuration files mounted into the CI/CD environment. There is no integrity or availability impact. The absence of a KEV listing and no identified public exploit code further constrains real-world urgency, but the risk is materially elevated in shared build infrastructure scenarios - SaaS CI/CD platforms, self-hosted runners with untrusted contributor access, or build farms where multiple tenants submit Dockerfiles to a common WCOW daemon. EPSS data was not provided in the input; risk classification relies on CVSS vector and contextual analysis.

Exploit ScenarioDerived

An attacker with the ability to submit Dockerfiles to a shared WCOW BuildKit daemon - for example, through a pull request to a repository whose CI/CD runs BuildKit on Windows - crafts a build that uses a cache mount and pre-populates the cache root with an NTFS directory junction pointing to a sensitive host path such as a secrets directory or user profile. When an operator or automated pipeline runs the build, BuildKit follows the junction without detection, and the build stage reads and potentially exfiltrates files from the host. No public proof-of-concept has been identified, but the technique is well-understood given the long history of Windows junction abuse in similar filesystem isolation contexts.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 20, 2026

Arbitrary host file disclosure in BuildKit's WCOW (Windows Container on Windows) worker mode allows an untrusted build author to read any file reachable by the BuildKit daemon process. By placing NTFS directory junctions inside the cache mount root - a technique the source= selector fails to detect on Windows - a malicious Dockerfile can redirect cache access to traverse outside the container's expected filesystem boundary. This affects any multi-tenant or shared CI/CD environment running a WCOW-configured BuildKit daemon where untrusted users can submit builds; no active exploitation has been confirmed (not listed in CISA KEV) and no public exploit code has been identified at time of analysis.

RemediationAI

Consult the official security advisory at https://github.com/moby/buildkit/security/advisories/GHSA-388v-wmr2-g2v2 for the patched BuildKit version; no specific fix version was present in the input data and none can be cited here without independent confirmation. Until a patch is applied, the most effective compensating control is to restrict access to WCOW-configured BuildKit daemons to fully trusted users only - removing untrusted contributor access to build submission eliminates the attack path entirely. A second mitigation is to disable cache mount usage (avoid --mount=type=cache,source=... directives) in builds from untrusted sources on WCOW workers; this reduces build performance but closes the specific code path. Switching affected pipelines to Linux-based BuildKit workers, where the vulnerability does not exist, is an alternative architectural mitigation where feasible. Running the BuildKit daemon under a minimally privileged Windows service account reduces the blast radius of exploitation by limiting which host files are reachable even if the junction traversal succeeds.

Affected VersionsENISA

buildkit 0 <0.31.2

Affected Packages

euvd buildkit fix: 0.31.2

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

BuildKit (CPE: cpe:2.3:a:moby:buildkit:*:*:*:*:*:*:*:*) is Docker's container image build engine. Its RUN --mount=type=cache,source=<dir> Dockerfile instruction allows builds to reuse a named cache directory across builds, improving performance. On Windows, NTFS supports 'directory junctions' - a form of filesystem reparse point functionally analogous to symlinks but specifically for directories. CWE-59 (Improper Link Resolution Before File Access, also known as 'Link Following') describes the root cause: the cache mount resolver on WCOW workers does not identify or reject NTFS junctions placed inside the designated cache root. When the daemon follows such a junction during a build, it resolves the junction target on the host filesystem rather than remaining within the cache sandbox. This is the Windows analogue of classic TOCTOU symlink attacks seen on Linux, and is specific to WCOW workers - Linux-based BuildKit workers are unaffected as they use a different filesystem model.

Know when Buildkit gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (Docker) PRIMARY 5.6 MEDIUM
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
vuln.today AI 5.5 MEDIUM

AV:L because daemon socket access is required; AC:H for WCOW-specific prerequisite; S:C because junction traversal escapes container cache boundary to host filesystem.

3.1 AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:N/A:N
4.0 AV:L/AC:L/AT:P/PR:N/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
SUSE 5.5 MEDIUM
AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
Red Hat 6.3 MEDIUM

Primary rating from Vendor (Docker).

CVSS VectorVendor: Docker

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
Active
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Jul 20, 2026 - 21:17 EUVD
CVE Published
Jul 20, 2026 - 19:12 cve.org
MEDIUM 5.6

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.1%
Top 96% exploitable
Prevalence
Medium
widely used build tool, but WCOW deployments are a niche minority
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment MSRC Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

28
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +28
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

CVE-2023-26054 MEDIUM POC
6.5 Mar 06

BuildKit is a toolkit for converting source code to build artifacts in an efficient, expressive and repeatable manner. R

CVE-2026-93318 HIGH
7.5 Oct 05

Cache poisoning in BuildKit lets a malicious image advertise DiffIDs that do not match its actual layer contents, so a d

CVE-2026-15793 HIGH
7.3 Jul 21

Argument injection in Moby BuildKit lets a malicious Git source trigger crafted command invocation on the build host whe

CVE-2026-93316 HIGH
7.1 Oct 05

Denial of service in Moby BuildKit allows a low-privileged remote user to crash the BuildKit daemon by submitting a buil

CVE-2026-15789 MEDIUM
6.9 Jul 21

Path traversal in the BuildKit daemon allows a client with valid control API access to craft a malicious upload request

CVE-2026-93322 MEDIUM
6.9 Oct 05

Denial of service in Moby BuildKit allows anyone able to submit an LLB build definition to a buildkitd daemon to panic a

CVE-2026-93323 MEDIUM POC
6.8 Oct 05

Denial of service in the BuildKit Dockerfile frontend (buildkitd) allows a user who can submit a build context to exhaus

CVE-2026-15792 MEDIUM
6.0 Jul 21

Denial of service in Docker BuildKit (moby/buildkit) allows a malicious or compromised client or frontend to crash the B

CVE-2026-93326 MEDIUM
6.0 Oct 05

BuildKit (moby/buildkit) contains a policy-validation bypass in which a specially crafted Git source build step makes a

CVE-2026-93320 MEDIUM
6.0 Oct 05

BuildKit, the container build engine used by Docker and exposed through `docker build`/buildx, can be tricked into perfo

CVE-2026-93317 MEDIUM POC
5.9 Oct 05

BuildKit can cache a fetched snapshot under a claimed content digest without adequately verifying that the blob bytes ma

CVE-2026-93315 MEDIUM
5.8 Oct 05

Moby BuildKit (all versions in the affected range per the unbounded CPE cpe:2.3:a:moby:buildkit:*:*:*:*:*:*:*:*) can be

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
SUSE Linux Enterprise Server 16.1 Not-Affected
SUSE Linux Enterprise Server for SAP applications 16.1 Not-Affected
SUSE Linux Micro 6.0 Not-Affected
SUSE Linux Micro 6.1 Not-Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy