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
Share

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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
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
qualitative

Primary rating from Vendor (Docker).

CVSS VectorVendor: Docker

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
A
Scope
X

Lifecycle Timeline

3
Patch available
Jul 20, 2026 - 21:17 EUVD
Analysis Generated
Jul 20, 2026 - 20:16 vuln.today
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.

AnalysisAI

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.

Technical ContextAI

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.

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.

More in Moby

View all
CVE-2023-28840 HIGH POC
8.7 Apr 04

Moby is an open source container framework developed by Docker Inc. Rated high severity (CVSS 8.7), this vulnerability i

CVE-2023-28841 MEDIUM POC
6.8 Apr 04

Moby is an open source container framework developed by Docker Inc. Rated medium severity (CVSS 6.8), this vulnerability

CVE-2024-36623 HIGH
8.1 Nov 29

moby through v25.0.3 has a Race Condition vulnerability in the streamformatter package which can be used to trigger mult

CVE-2018-12608 HIGH
7.5 Sep 10

An issue was discovered in Docker Moby before 17.06.0. Rated high severity (CVSS 7.5), this vulnerability is remotely ex

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-17106 HIGH
7.1 Aug 18

Tar extraction path traversal in moby/go-archive allows an attacker who controls archive contents to create or overwrite

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-2023-28842 MEDIUM
6.8 Apr 04

Moby) is an open source container framework developed by Docker Inc. Rated medium severity (CVSS 6.8), this vulnerabilit

CVE-2024-36621 MEDIUM
6.5 Nov 29

moby v25.0.5 is affected by a Race Condition in builder/builder-next/adapters/snapshot/layer.go. Rated medium severity (

CVE-2024-36620 MEDIUM
6.5 Nov 29

moby v25.0.0 - v26.0.2 is vulnerable to NULL Pointer Dereference via daemon/images/image_history.go. Rated medium severi

CVE-2022-36109 MEDIUM
6.3 Sep 09

Moby is an open-source project created by Docker to enable software containerization. Rated medium severity (CVSS 6.3),

CVE-2021-41091 MEDIUM
6.3 Oct 04

Moby is an open-source project created by Docker to enable software containerization. Rated medium severity (CVSS 6.3),

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

Share

CVE-2026-15788 vulnerability details – vuln.today

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