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.
Published: 2026-11-03
Score: 5.6 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Unauthorized File Access
Action: Upgrade
AI Analysis

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 0.19.0 through 0.38.0. Customers using any of those releases with untrusted Bake files for multi‑target builds are at risk. The fix is implemented in 0.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 currently unavailable. 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.

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

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
  • 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 4, 2026 at 08:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

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

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.

cve-icon MITRE

Status: PUBLISHED

Assigner: Docker

Published:

Updated: 2026-11-03T22:01:09.960Z

Reserved: 2026-11-03T14:41:36.745Z

Link: CVE-2026-121541

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-11-03T22:19:46.593

Modified: 2026-11-03T22:19:46.593

Link: CVE-2026-121541

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

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

Weaknesses