CVE-2026-121542

Bake filesystem path entitlements approval can be skipped for path using basename prefix

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

Analysis

AI-generated

Technical 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.

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 available
History
Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

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

threat_severity

Low

Type Values Removed Values Added
Metrics ssvc

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

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.

Weaknesses
  • CWE-22

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

Sources

Status
PUBLISHED
Assigner
Docker
Published
Updated
Nov 4, 2026, 6:20 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
Low
Public date
Nov 3, 2026, 9:59 PM