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

> CVE-2026-121542: Bake filesystem path entitlements approval can be skipped for path using basename prefix. CVSS 1.8 (CVSS 4.0).

Canonical: https://rewindex.com/cve/CVE-2026-121542
Last updated: 2026-11-03T22:19:46Z

- Published: 2026-11-03 21:59 UTC · Updated: 2026-11-03 22:19 UTC · Assigner: Docker
- CVSS: 1.8 (CVSS 4.0) · Severity: Low
- EPSS: 0.14%, 4th percentile (scored 2026-11-04)
- CISA KEV: no
- CWE: CWE-22

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

## Affected vendors and products

- Docker: Docker Buildx

## Tracked companies

- [Docker](https://rewindex.com/company/docker.md)

## References

- [CVE record on cve.org](https://www.cve.org/CVERecord?id=CVE-2026-121542)
- [NVD entry](https://nvd.nist.gov/vuln/detail/CVE-2026-121542)
- [https://github.com/docker/buildx/security/advisories/GHSA-rghq-x9hf-hc3r](https://github.com/docker/buildx/security/advisories/GHSA-rghq-x9hf-hc3r)

---

_Sources: CVE records from the CVE Program (cve.org). CVE® is a registered trademark of The MITRE Corporation. (https://www.cve.org/) This product uses data from the NVD API but is not endorsed or certified by the NVD. (https://nvd.nist.gov/) Known Exploited Vulnerabilities catalog from CISA. (https://www.cisa.gov/known-exploited-vulnerabilities-catalog) EPSS scores from FIRST (Exploit Prediction Scoring System). (https://www.first.org/epss/)_


---
Canonical: https://rewindex.com/cve/CVE-2026-121542 · Markdown: https://rewindex.com/cve/CVE-2026-121542.md · JSON: https://rewindex.com/api/v1/cves/CVE-2026-121542 · Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) · Generated 2026-11-05T10:25:36.759Z
