CVE-2026-121541

Bake filesystem path entitlements approval can be skipped in some multi-target builds

Published Nov 3, 2026 CVSS 4.0 · 5.6 Medium EPSS < 1% KEV · Not listed
Description
In Docker Buildx versions v0.19.0 through v0.38.0, an untrusted Bake definition that builds multiple targets together may expose files accessible to the Buildx client without the expected fs.read approval. Under certain conditions, filesystem paths from some targets are not verified against the approved entitlements. Users who run untrusted Bake definitions may be affected. The issue is fixed in v0.38.1.

Analysis

AI-generated

Technical impact

The vulnerability allows an attacker who has control over an untrusted Bake definition to cause Docker Buildx to expose file system paths during multi‑target builds that bypass the normal filesystem read entitlement checks. As a result, the Buildx client can read files it should not have access to, potentially leaking secrets or configuration data from the build context. This flaw represents an unauthorized file read that can lead to information disclosure or local privilege escalation within the build environment.

Affected Systems

The issue affects Docker Buildx versions v0.19.0 through v0.38.0. Customers using any of those releases with untrusted Bake files for multi‑target builds are at risk. The fix is implemented in v0.38.1. Docker Buildx is part of the Docker Engine tooling for building multi‑platform images and is commonly used in CI/CD pipelines.

Risk and Exploitability

The CVSS score of 5.6 indicates a moderate severity, and the EPSS score is less than 1%. The vulnerability is not listed in CISA’s KEV catalog. Attackers can exploit the flaw by supplying a crafted Bake definition that references forbidden paths; local users with the ability to invoke Buildx can trigger the bypass, meaning the attack vector is local. A successful exploitation would allow reading any file reachable under the Buildx process, compromising confidentiality of build artifacts and possibly revealing credentials stored in the build context.

Remediation

Vendor Solution

Upgrade Docker Buildx to v0.38.1 or later.


Vendor Workaround

Run only trusted Bake definitions until upgrading. Check that Bake definitions do not contain suspicious paths outside trusted directories.


OpenCVE Recommended Actions

  • Upgrade to Docker Buildx v0.38.1 or newer
  • Validate that all Bake definitions originate from trusted sources and inspect file paths before execution
  • Run only trusted Bake definitions until upgrading. Check that Bake definitions do not contain suspicious paths outside trusted directories.
  • If upgrade is not immediately possible, restrict Buildx to process only Bake files that reference directories within a pre‑approved trusted area

Generated by OpenCVE AI on November 6, 2026 at 02:23 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-552
References
Metrics threat_severity

None

cvssV3_1

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

threat_severity

Moderate

Type Values Removed Values Added
Description In Docker Buildx versions v0.19.0 through v0.38.0, an untrusted Bake definition that builds multiple targets together may expose files accessible to the Buildx client without the expected fs.read approval. Under certain conditions, filesystem paths from some targets are not verified against the approved entitlements. Users who run untrusted Bake definitions may be affected. The issue is fixed in v0.38.1.
Title Bake filesystem path entitlements approval can be skipped in some multi-target builds
Weaknesses CWE-863
References
Metrics cvssV4_0

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

Subscriptions

No data.

Weaknesses
  • CWE-552

    Files or Directories Accessible to External Parties

  • CWE-863

    Incorrect Authorization

Sources

Status
PUBLISHED
Assigner
Docker
Published
Updated
Nov 6, 2026, 7:32 PM
Reserved
Nov 3, 2026, 2:41 PM
Status
Awaiting Analysis
Published
Nov 3, 2026, 10:19 PM
Modified
Nov 6, 2026, 9:40 PM
Severity
Moderate
Public date
Nov 3, 2026, 10:01 PM