CVE-2023-26054

Source
https://nvd.nist.gov/vuln/detail/CVE-2023-26054
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-26054.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2023-26054
Aliases
Related
Published
2023-03-06T19:15:10Z
Modified
2025-01-15T04:46:32.916094Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N CVSS Calculator
Summary
[none]
Details

BuildKit is a toolkit for converting source code to build artifacts in an efficient, expressive and repeatable manner. In affected versions 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. Git URL can be passed in two ways: 1) Invoking build directly from a URL with credentials. 2) If the client sends additional version control system (VCS) info hint parameters on builds from a local source. Usually, that would mean reading the origin URL from .git/config file. When a build is performed under specific conditions where credentials were passed to BuildKit they may be visible to everyone who has access to provenance attestation. Provenance attestations and VCS info hints were added in version v0.11.0. Previous versions are not vulnerable. In v0.10, when building directly from Git URL, the same URL could be visible in BuildInfo structure that is a predecessor of Provenance attestations. Previous versions are not vulnerable. This bug has been fixed in v0.11.4. Users are advised to upgrade. Users unable to upgrade may disable VCS info hints 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.

References

Affected packages

Git / github.com/moby/buildkit

Affected ranges

Type
GIT
Repo
https://github.com/moby/buildkit
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Fixed

Affected versions

dockerfile/0.*

dockerfile/0.9.0
dockerfile/0.9.0-experimental

dockerfile/1.*

dockerfile/1.0.0
dockerfile/1.0.0-experimental
dockerfile/1.0.1
dockerfile/1.0.1-experimental
dockerfile/1.0.2-experimental
dockerfile/1.1.0
dockerfile/1.1.0-experimental
dockerfile/1.1.1
dockerfile/1.1.1-experimental
dockerfile/1.1.2
dockerfile/1.1.2-experimental
dockerfile/1.1.3
dockerfile/1.1.3-experimental
dockerfile/1.1.6
dockerfile/1.1.6-experimental
dockerfile/1.1.6-rc1
dockerfile/1.1.6-rc1-experimental
dockerfile/1.2.0
dockerfile/1.2.0-labs
dockerfile/1.2.0-rc1
dockerfile/1.2.0-rc1-labs
dockerfile/1.2.1
dockerfile/1.2.1-labs
dockerfile/1.3.0
dockerfile/1.3.0-labs
dockerfile/1.3.0-rc1
dockerfile/1.3.0-rc1-labs
dockerfile/1.4.0
dockerfile/1.4.0-labs
dockerfile/1.4.0-labs-rc1
dockerfile/1.4.0-labs-rc2
dockerfile/1.4.0-rc1
dockerfile/1.4.0-rc2
dockerfile/1.5.0-rc1
dockerfile/1.5.0-rc1-labs
dockerfile/1.5.0-rc2
dockerfile/1.5.0-rc2-labs

v0.*

v0.10.0
v0.10.0-rc1
v0.10.0-rc2
v0.11.0-rc1
v0.11.0-rc2
v0.11.0-rc3
v0.3.0
v0.3.1
v0.3.2
v0.3.3
v0.4.0
v0.5.0
v0.5.1
v0.6.0
v0.6.1
v0.7.0
v0.7.0-rc1
v0.8.0
v0.8.0-rc1
v0.8.0-rc2
v0.8.0-rc3
v0.8.1
v0.9.0
v0.9.0-rc1
v0.9.0-rc2