Description
In BuildKit versions prior to v0.34.1, a malicious client with access to the BuildKit control APIs can submit a build request that sets an extended attribute on a file outside the BuildKit state directory. Extended attributes in the trusted. or security. namespaces may also be set, potentially giving a program on the host elevated privileges. This issue affects build services that accept build requests from untrusted users. The issue is fixed in v0.34.1.
Published: 2026-11-03
Score: 4.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Privilege Escalation
Action: Patch Immediately
AI Analysis

Impact

In BuildKit versions older than 0.34.1 a malicious client with access to the control APIs can supply a build request that writes an extended attribute to a file outside the expected BuildKit state directory. The extended attribute names may belong to the trusted. or security. namespace, which, if set, can grant a program running on the host elevated privileges. This flaw allows the attacker to manipulate file attributes on the host filesystem, bypassing normal ownership and permission checks.

Affected Systems

Vulnerable systems include Moby BuildKit deployments using any version earlier than 0.34.1. The affected component is the BuildKit service that relies on the control API to coordinate build steps.

Risk and Exploitability

The CVSS score of 4.5 indicates a moderate impact. No EPSS data exists, and the vulnerability is not listed in CISA’s KEV catalog, suggesting limited publicly known exploitation. The likely attack vector is a remote client that can contact the BuildKit control API, which may be exposed over HTTP or gRPC. If an attacker can send a crafted build request, they may set privileged extended attributes, potentially causing privilege escalation or compromising host integrity. Current mitigations involve applying the vendor patch and restricting API access to trusted clients.

Generated by OpenCVE AI on November 4, 2026 at 08:50 UTC.

Remediation

Vendor Solution

Upgrade BuildKit to v0.34.1 or later.


Vendor Workaround

Restrict access to BuildKit control APIs to trusted clients and do not accept build requests from untrusted users.


OpenCVE Recommended Actions

  • Upgrade BuildKit to version 0.34.1 or later, which removes the ability to set extended attributes outside the state directory.
  • Restrict access to the BuildKit control APIs so that only trusted, authenticated clients can submit build requests.
  • If the BuildKit service is exposed to untrusted networks, guard it behind a firewall or enforce TLS to limit unauthorized API access.

Generated by OpenCVE AI on November 4, 2026 at 08:50 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 04 Nov 2026 02:15:00 +0000

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

Tue, 03 Nov 2026 22:30:00 +0000

Type Values Removed Values Added
Description In BuildKit versions prior to v0.34.1, a malicious client with access to the BuildKit control APIs can submit a build request that sets an extended attribute on a file outside the BuildKit state directory. Extended attributes in the trusted. or security. namespaces may also be set, potentially giving a program on the host elevated privileges. This issue affects build services that accept build requests from untrusted users. The issue is fixed in v0.34.1.
Title Malicious client could set xattr value outside of BuildKit state directory
Weaknesses CWE-61
References
Metrics cvssV4_0

{'score': 4.5, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:P/PR:H/UI:N/VC:N/VI:N/VA:N/SC:N/SI:H/SA:H'}


cve-icon MITRE

Status: PUBLISHED

Assigner: Docker

Published:

Updated: 2026-11-03T22:11:57.202Z

Reserved: 2026-11-03T14:26:45.909Z

Link: CVE-2026-121520

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-11-03T23:17:34.177

Modified: 2026-11-03T23:17:34.177

Link: CVE-2026-121520

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-11-04T09:00:16Z

Weaknesses
  • CWE-61

    UNIX Symbolic Link (Symlink) Following