# CVE-2026-121542: Bake filesystem path entitlements approval can be skipped for path using basename prefix

Status: published. Published: 2026-11-03. Updated: 2026-11-06.

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.

## Remediation

- fix: Upgrade Docker Buildx to v0.38.1 or later. (source: CNA: Docker)
- 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. (source: CNA: Docker)

## Affected products and versions

- Docker / Docker Buildx: ≥ 0.19.0; < 0.38.1 (affected, semver). Source: CNA: Docker

## Severity and prioritization

- CVSS 4.0: 1.8 (low); 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; source: CNA: Docker

- CVSS 4.0: 1.8 (low); 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X; source: NVD: security@docker.com

- CISA KEV: No listing in collected sources

- EPSS: 0.14% as of 2026-11-05; percentile 3.80%

- SSVC: exploitation none; automatable no; technical impact partial; source ADP: CISA-ADP

- Weaknesses: CWE-22

## Exploit evidence

No exploit evidence in collected sources. This is not proof of no exploitation.

## References

- https://github.com/docker/buildx/security/advisories/GHSA-rghq-x9hf-hc3r (CNA: Docker; vendor-advisory)

- https://github.com/docker/buildx/security/advisories/GHSA-rghq-x9hf-hc3r (security@docker.com)

## Provenance

- CNA: Docker: https://www.cve.org/CVERecord?id=CVE-2026-121542; retrieved 2026-11-04; source updated 2026-11-04

- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-121542; retrieved 2026-11-07; source updated 2026-11-06

- FIRST EPSS: https://api.first.org/data/v1/epss?cve=CVE-2026-121542; retrieved 2026-11-06; source updated Not reported

Revision: 847f21523261feeb04fdebced2b83ca95e29249802cf37d84629eb06055d27de

Canonical: https://y2.dev/cve/CVE-2026-121542

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.