Information Exposure Affecting github.com/moby/buildkit/solver/llbsolver package, versions >=0.10.0 <0.11.4


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.19% (57th 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 IDSNYK-GOLANG-GITHUBCOMMOBYBUILDKITSOLVERLLBSOLVER-3355191
  • published7 Mar 2023
  • disclosed7 Mar 2023
  • creditOscar Alberto Tovar

Introduced: 7 Mar 2023

CVE-2023-26054  (opens in a new tab)
CWE-200  (opens in a new tab)

How to fix?

Upgrade github.com/moby/buildkit/solver/llbsolver to version 0.11.4 or higher.

Overview

Affected versions of this package are vulnerable to Information Exposure such that when the user sends a build request that contains a Git URL that contains credentials and the build creates a provenance attestation describing that build, these credentials could be visible from the provenance attestation.

Workaround

It is recommended to pass credentials with build secrets when building directly from Git URL as a more secure alternative than modifying the URL.

In Docker Buildx, VCS info hint can be disabled by setting BUILDX_GIT_INFO=0. buildctl does not set VCS hints based on .git directory, and values would need to be passed manually with --opt.

CVSS Scores

version 3.1