Skip to main content

BuildKit EUVDEUVD-2026-62839

| CVE-2026-75593 HIGH
Path Traversal (CWE-22)
2026-08-19 security-advisories@github.com GHSA-wqjv-cjqw-p7p5
7.2
CVSS 4.0 · Vendor: github
View

Attack ChainAIDerived

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

  1. Access
    Obtain valid BuildKit control API credentials
  2. Delivery
    Connect to BuildKit daemon over network or socket
  3. Exploit
    Craft upload request embedding path traversal sequences
  4. Execution
    Submit malicious build request to daemon
  5. Persist
    Daemon writes attacker-controlled file content outside state directory
  6. Impact
    Achieve arbitrary host filesystem write (e.g., drop malicious cron job or overwrite binary)

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 that the attacker possess valid credentials or permissions to access the BuildKit control API and issue build requests - explicitly stated in the CVE description ('The client needs to have valid permissions to access BuildKit control API to issue builds'). Unauthenticated remote exploitation is not possible. The attack is limited to: (1) principals already granted API access to the BuildKit daemon, and (2) BuildKit instances reachable by such principals. Local single-user Docker Desktop deployments are at low practical risk because API access is scoped to the authenticated local user. The highest-risk deployments are multi-tenant CI/CD systems, build farms, or environments where API credentials are shared or issued to multiple build users, as any one of those principals could exploit the flaw.

Impact

The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:H) scores 7.2 and accurately captures a network-reachable, low-complexity flaw requiring only authenticated low-privilege API access, with no user interaction needed. The PR:L requirement is the primary limiting factor: unauthenticated exploitation is impossible; the attacker must first obtain valid BuildKit control API credentials or access. In shared or multi-tenant build environments - common in CI/CD platforms - this bar may be low if build participants already hold API tokens. No EPSS data was provided, and the absence of a KEV listing and public POC suggests this has not been broadly weaponized. Despite the high VI/VA impact, the real-world risk is moderate-to-high for environments that expose BuildKit API access to multiple or semi-trusted principals, and low for single-user local Docker Desktop installations where API access is inherently restricted to the local user.

Exploit ScenarioDerived

An attacker who holds a valid BuildKit API token in a shared CI/CD environment crafts a malicious build-context upload request embedding path traversal sequences - for example, targeting ../../etc/cron.d/ - causing the BuildKit daemon to write attacker-controlled file content to a host cron directory. No public POC has been identified at time of analysis, but the attack pattern is well-understood for CWE-22 class vulnerabilities and would be straightforward to implement given API documentation.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.5% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Aug 19, 2026

Path traversal in BuildKit prior to v0.31.2 enables an authenticated API client to escape the daemon's controlled state directory by submitting a crafted upload request containing traversal sequences. Affected parties include any deployment where multiple principals share BuildKit API access - such as multi-tenant CI/CD infrastructure or shared Docker build environments. The vulnerability grants a write primitive to arbitrary host filesystem locations, posing high integrity and availability risk; no public exploit or CISA KEV listing has been identified at time of analysis.

RemediationAI

Upgrade BuildKit to version 0.31.2 or later; the patched release and changelog are at https://github.com/moby/buildkit/releases/tag/v0.31.2, and the advisory at https://github.com/moby/buildkit/security/advisories/GHSA-g2h8-426c-7976 provides additional context. For platforms that embed BuildKit (Docker Desktop, Docker Engine, CI runners), check whether the upstream vendor has released an updated distribution incorporating v0.31.2. If an immediate upgrade is not feasible, restrict access to the BuildKit control API socket (Unix socket at /run/buildkit/buildkitd.sock or TCP endpoint) to only fully trusted, individually identified principals - note this does not eliminate the vulnerability but eliminates the attacker's required foothold. Avoid exposing the BuildKit daemon API over a TCP network interface without strict network-layer access controls, as this would widen the pool of potential attackers with API access.

Affected VersionsENISA

buildkit < 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 (github.com/moby/buildkit) is Docker's next-generation image build daemon, exposing a gRPC control API that clients use to submit build definitions and upload build context. CWE-22 (Path Traversal / Improper Limitation of a Pathname to a Restricted Directory) is the root cause: the daemon fails to fully canonicalize or sanitize path components in client-supplied upload requests, allowing sequences such as '../../' to resolve outside the intended BuildKit state directory (typically /var/lib/buildkit or a similar scoped path). Because BuildKit runs with elevated host privileges to perform container builds, successful traversal yields write access to the broader host filesystem. No CPE strings were provided in the available intelligence data; the affected software is identified by the GitHub repository github.com/moby/buildkit at versions prior to 0.31.2.

Know when the next one hits your stack

  • 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 (github) PRIMARY 7.2 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N
vuln.today AI 9.6 CRITICAL

Network-reachable daemon requiring low-privilege API credentials; scope change applies because path traversal escapes BuildKit's sandbox to the underlying host filesystem.

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

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Network
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
Aug 19, 2026 - 21:17 EUVD
CVE Published
Aug 19, 2026 - 20:17 cve.org
HIGH 7.2

DescriptionCVE.org

BuildKit is a toolkit for converting source code to build artifacts in an efficient, expressive and repeatable manner. Prior to 0.31.2, 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 BuildKit control API to issue builds, eg., bypass authentication, etc. This issue is fixed in version 0.31.2.

Executive ViewAI

Why It Matters

BuildKit prior to v0.31.2 contains a path traversal vulnerability (CVE-2026-75593) that allows authenticated API clients to write to arbitrary filesystem locations. This poses significant integrity and availability risk for organizations operating multi-tenant CI/CD infrastructure or shared build environments where multiple teams access the same BuildKit API.

Business Impact: High
Compensating Controls

Implement network-level access controls limiting BuildKit API exposure to trusted clients only, enforce mutual TLS authentication for API connections, segment multi-tenant workloads across isolated BuildKit daemon instances, and establish monitoring of filesystem write operations initiated by the BuildKit process to detect anomalous traversal patterns.

Threat Intelligence Overview

EPSS Score
0.5%
Top 57% exploitable
Prevalence
High
Core Docker build toolkit, embedded across major CI/CD platforms
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 HIGH
CISA KEV No
Public POC No
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

37
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +36
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.

Vendor StatusVendor

SUSE

Severity: Important
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