# CVE-2023-26054: Credentials inlined to Git URLs could end up in provenance attestation in BuildKit

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.5
- **CVSS:** 6.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: Required; Scope: Unchanged; Confidentiality impact: High; Integrity impact: None; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 1.00% (percentile 62, 2026-11-28)
- **CWE:** CWE-200
- **Aliases:** GHSA-gc89-7gcr-jxqc
- **Published:** 2023-03-06T18:05:07.602Z
- **Modified:** 2026-06-17T05:42:33.477Z

## Who should check

- Projects that depend on Go package github.com/moby/buildkit (\>= 0.10.0, \< 0.11.4)
- Anyone running moby buildkit \>= 0.10.0, \< 0.11.4

## Description

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\`.

## Affected and fixed versions

- Go `github.com/moby/buildkit`: affected \>= 0.10.0, \< 0.11.4; fixed 0.11.4 (osv)
- moby buildkit: \>= 0.10.0, \< 0.11.4 (cvelist)

## Mitigation

- Upgrade github.com/moby/buildkit to 0.11.4 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-26054. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-26054.md
Affected: github.com/moby/buildkit >= 0.10.0, < 0.11.4
Fixed in: 0.11.4

Steps:
1. Search this machine and project for github.com/moby/buildkit (Go), moby buildkit: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-26054 being exploited?

There is no confirmed exploitation: CVE-2023-26054 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.00% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2023-26054?

Medium: CVSS 6.5 (v3.1, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2023-26054?

github.com/moby/buildkit \>= 0.10.0, \< 0.11.4.

### Is there a fix for CVE-2023-26054?

Yes. Fixed in 0.11.4. Upgrade github.com/moby/buildkit to 0.11.4 or later.

### How do I check if I'm affected by CVE-2023-26054?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/moby/buildkit/security/advisories/GHSA-gc89-7gcr-jxqc>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2023-26054>
- patch: <https://github.com/moby/buildkit/commit/75123c696506bdbca1ed69906479e200f1b62604>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZTE4ITXXPIWZEQ4HYQCB6N6GZIMWXDAI/>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LYZOKMMVX4SIEHPJW3SJUQGMO5YZCPHC/>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XNF4OLYZRQE75EB5TW5N42FSXHBXGWFE/>
- other: <https://github.com/moby/buildkit>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LYZOKMMVX4SIEHPJW3SJUQGMO5YZCPHC>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XNF4OLYZRQE75EB5TW5N42FSXHBXGWFE>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZTE4ITXXPIWZEQ4HYQCB6N6GZIMWXDAI>
- other: <https://www.rfc-editor.org/rfc/rfc3986#section-3.2.1>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-26054>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-gc89-7gcr-jxqc> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2023-26054> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-26054>
