Skip to main content

BuildKit CVE-2026-15791

| EUVDEUVD-2026-46310 LOW
Path Traversal (CWE-22)
2026-07-21 Docker
1.8
CVSS 4.0 · Vendor: Docker
View

Attack ChainAIDerived

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

  1. Access
    Access BuildKit low-level gRPC API socket
  2. Delivery
    Craft malicious file-deletion API message with path traversal payload
  3. Exploit
    Trigger build session to activate message processing
  4. Execution
    Traversal escapes container rootfs mount
  5. Impact
    Host /tmp directory contents deleted

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: (1) local access to the BuildKit daemon's API socket or endpoint (AV:L) - the attacker must be able to submit raw low-level build API messages, not merely invoke 'docker build'; (2) a specific attack precondition is present (AT:P) - the attacker must control the build API message payload, which in practice means either being the build client, compromising it, or injecting content into a Dockerfile/build context that reaches the low-level API; (3) active user interaction (UI:A) - a build operation must be initiated or already in progress. Exploitation is limited by: the requirement for local API access (not a remote/internet-facing vector by default); the need for an active build session; and the constrained impact (host /tmp destruction only, no code execution or data exfiltration). Default Docker CLI usage does not expose the low-level API to untrusted input, so standard 'docker build' users face lower residual risk than environments exposing the BuildKit daemon API directly to less-trusted clients.

Impact

Real-world risk is low-to-moderate and well-represented by the 3.3 score. The CVSS 4.0 vector is AV:L (local attack surface - the BuildKit socket or API must be reachable), AT:P (specific precondition - control over the low-level build API message format, not merely running a normal build), UI:A (active user interaction required - a build session must be in progress or triggered), PR:N (no formal privilege level required within the API), and VC:N/VI:L/VA:L (no confidentiality loss; low integrity and availability impact). No EPSS data was provided; however, given no KEV status, no POC, and the constrained local/interactive vector, opportunistic mass exploitation is unlikely. The primary real-world scenario is a malicious or compromised build client in a CI/CD pipeline targeting the BuildKit daemon. Destroying /tmp can cause denial-of-service for processes depending on temporary files but does not grant code execution or credential access. CVSS indicates no scope-change impact on the subsequent system (host), which slightly under-represents the host /tmp data destruction - this discrepancy should be noted and verified against the vendor advisory.

Exploit ScenarioDerived

An attacker with the ability to submit crafted messages to the BuildKit low-level build API - for example, a malicious CI/CD pipeline step, a compromised build tool, or a rogue build script - sends a specially constructed file-deletion instruction that embeds a path traversal sequence. When BuildKit processes the message during a build session, the deletion escapes the container rootfs mount and removes files under the host's /tmp directory, disrupting any host processes relying on temporary storage. No public POC has been identified, but the API message format is documented, lowering the conceptual barrier to exploitation for a technically skilled attacker with API access.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.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 BuildKit's low-level build API allows crafted messages to redirect the container rootfs file-deletion action onto the real host /tmp directory, wiping its contents. All published moby/buildkit versions are affected per the broad CPE cpe:2.3:a:moby:buildkit:*:*:*:*:*:*:*:*. No public exploit code or active exploitation has been identified at time of analysis; the vendor-assigned CVSS score of 3.3 (CVSS 4.0) correctly reflects a constrained impact - host /tmp destruction rather than arbitrary code execution or credential exposure.

RemediationAI

Upgrade to the patched BuildKit release identified in the GitHub Security Advisory at https://github.com/moby/buildkit/security/advisories/GHSA-32pv-7hq5-qhwq - the exact fix version is not confirmed from available data and must be taken directly from the advisory. As a compensating control pending upgrade, restrict access to the BuildKit low-level gRPC API socket (typically /run/buildkit/buildkitd.sock) to only trusted, authorized build clients; this trades off build flexibility for a reduced attack surface. Additionally, consider running the BuildKit daemon in rootless mode, which limits the blast radius of a host /tmp traversal since the effective 'host /tmp' visible to the daemon is scoped to the user's namespace. Do not expose the BuildKit API over a network listener (AV:L confirms the expected local vector) as a defense-in-depth measure.

Affected VersionsENISA

buildkit 0.10.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 is Moby's low-level container image build engine, used as the backend for 'docker build' and similar tooling. It exposes a gRPC-based API that clients use to send build instructions, including file system operations against the build container's rootfs. The root cause is CWE-22 (Improper Limitation of a Pathname to a Restricted Directory - 'Path Traversal'): the file-deletion operation fails to canonicalize or jail the target path, allowing a crafted path in the API message to traverse out of the container rootfs mount and resolve to the host filesystem's /tmp directory. The affected CPE cpe:2.3:a:moby:buildkit:*:*:*:*:*:*:*:* covers all version branches, indicating the flaw is not version-range-limited. The CVSS 4.0 vector (AV:L/AT:P) confirms exploitation requires local access and a specific attack precondition - typically the ability to submit messages to the BuildKit daemon's low-level API, not just the high-level 'docker build' CLI.

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 1.8 LOW
CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N
vuln.today AI 5.0 MEDIUM

Local vector with scope change to host /tmp; no privileges required but user interaction (active build session) needed; no confidentiality impact, low integrity and availability.

3.1 AV:L/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:L
4.0 AV:L/AC:L/AT:P/PR:N/UI:A/VC:N/VI:L/VA:L/SC:N/SI:L/SA:N

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
None
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

3
Patch available
Jul 21, 2026 - 19:03 EUVD
CVSS changed
Jul 21, 2026 - 17:22 NVD
3.3 (LOW) 1.8 (LOW)
CVE Published
Jul 21, 2026 - 16:10 cve.org
LOW 3.3

DescriptionCVE.org

A crafted message in the BuildKit low-level build API can be used to remove the contents of the /tmp directory. The action that can normally be used to delete files inside the build container rootfs can escape into the real host temp directory.

Threat Intelligence Overview

EPSS Score
0.2%
Top 91% exploitable
Prevalence
High
core build engine for Docker and widely used in CI/CD pipelines
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High

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 LOW
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.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

9
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +9
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-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

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