CVE-2026-121542

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

  • Low 1.8

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.

Key facts

Published
3 Nov 2026
Last changed
4 Nov 2026
Assigned by
Docker
EPSS
0.145% likely to be exploited in the next 30 days, higher than 3.823% of CVEs (scores for 16 Nov 2026)
SSVC (CISA)
Exploitation: none; Automatable: no; Technical impact: partial

Severity scores

Each score is shown as its source gave it. They are not averaged or merged.

  • 1.8CVSS 4.0, Lowfrom the CNA (Docker)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

What to do

  • Upgrade Docker Buildx to v0.38.1 or later.CNA solution statement
  • 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.CNA workaround statement

Historical context and remediation

This reference retains the original CVE publication date. A recent record update does not mean a new attack occurred.

No separately sourced impact summary is available on this page yet. Consult the description, version data and dated exploitation evidence.

Version statuses below come from the CNA. An “unaffected” version is not necessarily a currently supported release or proof of a patch date. EPSS is a dated risk estimate, not a count of historical attacks.

Read the original CVE record.

Affected products

VendorProductVersions
DockerDocker Buildx
  • Default status: unaffected
  • 0.19.0 up to but excluding 0.38.1 (affected)

Timeline

  1. 3 Nov 2026 Published

Weakness

Practice this bug class

HackZoneLabs has a hands-on lab on Path traversal (CWE-22).

References