CVE-2026-121520

Malicious client could set xattr value outside of BuildKit state directory

Published Nov 3, 2026 CVSS 4.0 · 4.5 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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. The EPSS score of <1% indicates a very low probability of exploitation. 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.

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 5, 2026 at 02:35 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Weaknesses CWE-22
References
Metrics threat_severity

None

cvssV3_1

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

threat_severity

Important

Type Values Removed Values Added
First Time appeared Moby
Moby buildkit
Vendors & Products Moby
Moby buildkit
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'}

Weaknesses
  • CWE-22

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

  • CWE-61

    UNIX Symbolic Link (Symlink) Following

Sources

Status
PUBLISHED
Assigner
Docker
Published
Updated
Nov 6, 2026, 7:31 PM
Reserved
Nov 3, 2026, 2:26 PM
Status
Awaiting Analysis
Published
Nov 3, 2026, 11:17 PM
Modified
Nov 6, 2026, 9:40 PM
Severity
Important
Public date
Nov 3, 2026, 10:11 PM