Skip to main content

Moby BuildKit EUVDEUVD-2026-46309

| CVE-2026-15789 MEDIUM
Path Traversal (CWE-22)
2026-07-21 Docker
6.9
CVSS 4.0 · Vendor: Docker
View

Attack ChainAIDerived

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

  1. Access
    Obtain BuildKit API credentials or socket access
  2. Delivery
    Connect to buildkitd control socket
  3. Exploit
    Craft upload request with path traversal payload
  4. Execution
    Submit malicious build context to daemon
  5. Persist
    Daemon writes files outside state directory
  6. Impact
    Overwrite host files for persistence or sabotage

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK

2 techniques across 2 tactics: Discovery, Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires local access to the host running the BuildKit daemon (AV:L) and valid permissions to issue requests to the BuildKit control API (PR:L), such as membership in the group authorized to access the buildkitd socket or possession of a valid mTLS client certificate. The description explicitly states the client must be able to 'bypass authentication' or otherwise hold legitimate API access to issue builds. Exploitation is constrained to: (1) authenticated or authorized BuildKit API clients only - anonymous network attackers cannot exploit this; (2) local or socket-adjacent access - remote exploitation requires prior compromise of a build-authorized identity; (3) all tracked moby/buildkit versions per CPE wildcard, but only on systems where buildkitd is running and accessible.

Impact

The CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:H) signals a locally exploitable flaw requiring low-privilege API access with no complexity or user-interaction barriers once access is established - resulting in a 6.9 Medium score. The local attack vector (AV:L) substantially limits the threat compared to a network-reachable vulnerability: an attacker must already operate on the same host or have network-level reach to the BuildKit socket. The PR:L requirement means the attacker must hold valid BuildKit control API credentials or permissions, ruling out fully anonymous exploitation. No EPSS score was supplied, no CVE is listed in CISA KEV, and no public proof-of-concept has been identified, making this a credible but not currently weaponized risk. The high integrity (VI:H) and availability (VA:H) impacts are meaningful in CI/CD contexts where arbitrary file writes on a build host could plant malicious artifacts or destabilize the build agent. There is no confidentiality impact (VC:N), which limits the direct data-exfiltration risk.

Exploit ScenarioDerived

An attacker with legitimate access to the BuildKit control API - such as a compromised CI/CD pipeline runner or a malicious contributor with build-trigger permissions - crafts an upload request embedding path traversal sequences in the file destination path. BuildKit processes the request without stripping traversal components, writing attacker-controlled content to an arbitrary location on the host filesystem beyond the state directory. This could be used to overwrite startup scripts, inject payloads into shared library paths, or corrupt other build artifacts on a shared build host.

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

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

Alert me

AnalysisAIv1 – Jul 21, 2026

Path traversal in the BuildKit daemon allows a client with valid control API access to craft a malicious upload request that writes files outside the BuildKit-controlled state directory, breaking container build sandbox boundaries. Affected products span all tracked versions of moby/buildkit per CPE data, and the vulnerability carries a CVSS 4.0 score of 6.9 with high integrity and availability impact on the vulnerable system. No public exploit code or CISA KEV listing has been identified at time of analysis.

RemediationAI

Consult the Docker/Moby security advisory at https://github.com/moby/buildkit/security/advisories/GHSA-g2h8-426c-7976 for the exact patched release version - a specific fix version was not independently confirmed from available input data. Upstream fix availability should be assumed pending advisory review. As a compensating control, restrict access to the BuildKit daemon socket (typically /run/buildkit/buildkitd.sock) to only trusted, explicitly authorized users or service accounts, reducing the population of principals capable of issuing crafted upload requests. In Kubernetes environments, enforce pod security admission policies that limit which workloads can mount the BuildKit socket. Avoid exposing the buildkitd gRPC endpoint over a network interface without mutual TLS authentication, since the daemon's local socket model is the primary intended isolation boundary.

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 Moby's next-generation container image build engine, used as the backend for 'docker buildx' and many CI/CD pipelines. It exposes a gRPC-based control API (buildkitd daemon) through which clients submit build contexts and transfer files. CWE-22 (Improper Limitation of a Pathname to a Restricted Directory) identifies the root cause: upload request paths are not sufficiently sanitized, so traversal sequences (e.g., '../') can resolve to locations outside the daemon's designated state directory. This breaks the file-system isolation that BuildKit relies on to safely handle untrusted build inputs.

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 6.9 MEDIUM
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N
vuln.today AI 7.1 HIGH

Local socket access with low privileges required; high integrity and availability impact from unrestricted file writes; no confidentiality impact per description and CVSS 4.0 VC:N.

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

Primary rating from Vendor (Docker).

CVSS VectorVendor: Docker

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

Lifecycle Timeline

2
Patch available
Jul 21, 2026 - 19:03 EUVD
CVE Published
Jul 21, 2026 - 16:10 cve.org
MEDIUM 6.9

DescriptionCVE.org

A custom client can produce such an upload request to the BuildKit daemon that files can escape from the BuildKit-controlled state directory. The client needs to have valid permissions to access the BuildKit control API to issue builds, e.g., bypass authentication, etc.

Threat Intelligence Overview

EPSS Score
0.2%
Top 94% exploitable
Prevalence
High
default container build engine in Docker and major CI/CD platforms
Social Media
1
Sightings
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor CIRCL 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.2%
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
Scheduled
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
High
Technical Impact
Partial

Priority Score

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

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

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

CVE-2026-93319 MEDIUM
5.7 Oct 05

A malicious external BuildKit frontend can issue crafted requests against the daemon's internal API that trigger a data

Vendor StatusVendor

SUSE

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

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