Description
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.
Published: 2026-08-19
Score: 7.2 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A BuildKit client can create an upload request that bypasses the destination directory validation inside the BuildKit daemon, allowing files to be written outside the controlled state directory. This flaw permits arbitrary host file creation or modification, compromising confidentiality, integrity, and availability if the attacker is able to write critical configuration files or place malicious binaries. The weakness is a classic path traversal / directory traversal flaw, identified with CWE-22.

Affected Systems

All BuildKit installations provided by the moby vendor that run a version earlier than 0.31.2 are affected. The vulnerability is tied to any BuildKit instance that has not applied the 0.31.2 or newer fix, regardless of deployment environment.

Risk and Exploitability

The CVSS score of 7.2 indicates a high‑impact vulnerability. The EPSS score is not available and the issue is not listed in CISA KEV. Exploitation requires valid permissions to the BuildKit control API, which can be obtained through an authentication bypass or by exposing the API to untrusted clients. The likely attack vector is an attacker who has established a legitimate, but malicious, BuildKit client capable of communicating with the daemon’s control interface, enabling the upload of files that escape the intended directory.

Generated by OpenCVE AI on August 20, 2026 at 11:47 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade BuildKit to version 0.31.2 or later
  • Enforce authentication on the BuildKit control API to prevent unauthorized clients
  • Restrict network access to the BuildKit control socket or endpoint to trusted machines

Generated by OpenCVE AI on August 20, 2026 at 11:47 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 03 Sep 2026 12:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N'}

threat_severity

Moderate


Tue, 25 Aug 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Wed, 19 Aug 2026 23:45:00 +0000

Type Values Removed Values Added
First Time appeared Moby
Moby buildkit
Vendors & Products Moby
Moby buildkit

Wed, 19 Aug 2026 20:15:00 +0000

Type Values Removed Values Added
Description 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.
Title BuildKit: Malicious client can bypass destination directory validation on local sources upload
Weaknesses CWE-22
References
Metrics cvssV4_0

{'score': 7.2, 'vector': '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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-25T14:02:29.264Z

Reserved: 2026-08-17T23:49:03.449Z

Link: CVE-2026-75593

cve-icon Vulnrichment

Updated: 2026-08-25T14:02:24.759Z

cve-icon NVD

Status : Received

Published: 2026-08-19T20:17:23.203

Modified: 2026-08-25T14:16:53.550

Link: CVE-2026-75593

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-08-19T20:06:54Z

Links: CVE-2026-75593 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-20T12:00:04Z

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')