CVE-2026-121541 PUBLISHED

Bake filesystem path entitlements approval can be skipped in some multi-target builds

Assigner: Docker
Reserved: 03.11.2026 Published: 03.11.2026 Updated: 03.11.2026

In Docker Buildx versions v0.19.0 through v0.38.0, an untrusted Bake definition that builds multiple targets together may expose files accessible to the Buildx client without the expected fs.read approval. Under certain conditions, filesystem paths from some targets are not verified against the approved entitlements. Users who run untrusted Bake definitions may be affected. The issue is fixed in v0.38.1.

Metrics

CVSS Vector: CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
CVSS Score: 5.6

The advisory-described fs.read bypass: a victim runs an untrusted multi-target Bake definition, and favorable target iteration order permits disclosure of client-readable files. This metric assesses file disclosure only; it does not assess filesystem-write impacts described in the broader report.

Product Status

Vendor Docker
Product Docker Buildx
Versions Default: unaffected
  • affected from 0.19.0 to 0.38.1 (excl.)

Workarounds

Run only trusted Bake definitions until upgrading. Check that Bake definitions do not contain suspicious paths outside trusted directories.

Solutions

Upgrade Docker Buildx to v0.38.1 or later.

Credits

  • hCaptcha security team finder

References

Problem Types

  • CWE-863: Incorrect Authorization CWE