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

Low 1.8 Published Updated
Exploited in the wild
Not known
Fix
None listed

What is CVE-2026-121542?

CVE-2026-121542 is a low-severity vulnerability in Docker Buildx, published on 3 Nov 2026.

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

Weakness: CWE-22

Which versions are affected by CVE-2026-121542?

How do I fix CVE-2026-121542?

No fix has been published for CVE-2026-121542 yet. Limit exposure of the affected software until one is available.

Is CVE-2026-121542 being exploited?

There is no known exploitation of CVE-2026-121542 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2026-121542, ECHO-3845-d168-5441, GHSA-rghq-x9hf-hc3r, UBUNTU-CVE-2026-121542.

Is CVE-2026-121542 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free