Incorrect Authorization Affecting github.com/docker/buildx/bake package, versions >=0.19.0 <0.38.2


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.11% (2nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Incorrect Authorization vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOMDOCKERBUILDXBAKE-22497156
  • published12 Nov 2026
  • disclosed3 Nov 2026
  • credithCaptcha Security Team

Introduced: 3 Nov 2026

NewCVE-2026-121541  (opens in a new tab)
CWE-863  (opens in a new tab)

How to fix?

Upgrade github.com/docker/buildx/bake to version 0.38.2 or higher.

Overview

Affected versions of this package are vulnerable to Incorrect Authorization via the EntitlementConf.Validate function in Bake. When a user builds an untrusted Bake definition with multiple targets, a target without local paths can mask paths required by another target, depending on map iteration order. The unverified paths can expose files accessible to the Buildx client without the expected fs.read approval.

Workarounds

  • Run only trusted Bake definitions to prevent untrusted definitions from exploiting the filesystem entitlement validation bypass.
  • Check Bake definitions before building them for suspicious paths outside trusted directories to avoid exposing files through unverified paths.

CVSS Base Scores

version 4.0
version 3.1