Description
In Docker Buildx versions v0.19.0 through v0.38.0, an untrusted Bake definition may expose files accessible to the Buildx client without the expected fs.read approval. Under certain conditions, paths under the same parent directory as the current working directory whose names use the working directory's basename as a prefix can skip the filesystem entitlement check. Exploitation requires specific matching filenames next to the current project directory. Users who run untrusted Bake definitions may be affected. The issue is fixed in v0.38.1.
Published: 2026-11-03
Score: 1.8 Low
EPSS: < 1% Very Low
KEV: No
Impact: Unauthorized local file read
Action: Patch Buildx
AI Analysis

Impact

In Docker Buildx v0.19.0 through v0.38.0, untrusted Bake definitions can expose files to the Buildx client when the file names start with the current working directory’s basename. This bypasses the expected filesystem entitlement check and allows an attacker to read files that should remain protected. The effect is a data disclosure vulnerability within the Buildx build process.

Affected Systems

This issue affects Docker Buildx users running versions 0.19.0 to 0.38.0. Upgrading to version 0.38.1 or later eliminates the vulnerability.

Risk and Exploitability

The CVSS score of 1.8 indicates low impact, and the EPSS score is not available, suggesting limited exploitation probability. The vulnerability is not listed in CISA KEV. Exploitation requires an attacker to supply a specially crafted Bake definition with a local filename that shares the current directory’s basename as a prefix, and the definition must be trusted or indirectly executed. Under these conditions, an attacker could read sensitive files 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. The issue requires specific matching filenames next to the current project directory.


OpenCVE Recommended Actions

  • Upgrade Docker Buildx to v0.38.1 or later
  • If an upgrade cannot be performed immediately, run only trusted Bake definitions and avoid bake files that reference paths with the current directory’s basename as a prefix
  • Validate bake definitions to ensure they do not contain suspicious paths outside trusted directories

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

Wed, 04 Nov 2026 19:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


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 may expose files accessible to the Buildx client without the expected fs.read approval. Under certain conditions, paths under the same parent directory as the current working directory whose names use the working directory's basename as a prefix can skip the filesystem entitlement check. Exploitation requires specific matching filenames next to the current project directory. 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 for path using basename prefix
Weaknesses CWE-22
References
Metrics cvssV4_0

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


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: Docker

Published:

Updated: 2026-11-04T18:20:22.776Z

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

Link: CVE-2026-121542

cve-icon Vulnrichment

Updated: 2026-11-04T18:12:24.363Z

cve-icon NVD

Status : Received

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

Modified: 2026-11-04T19:17:30.733

Link: CVE-2026-121542

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

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

Weaknesses
  • CWE-22

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