Secrets leakage to telemetry endpoint via cache backend configuration via buildx
cve-program · CVE-2025-0495
PublishedBuildx is a Docker CLI plugin that extends build capabilities using BuildKit. Cache backends support credentials by setting secrets directly as attribute values in cache-to/cache-from configuration. When supplied as user input, these secure values may be inadvertently captured in OpenTelemetry traces as part of the arguments and flags for the traced CLI command. OpenTelemetry traces are also saved in BuildKit daemon's history records. This vulnerability does not impact secrets passed to the Github cache backend via environment variables or registry authentication.
Read the publisher's advisoryeuvd · EUVD-2025-6497
PublishedBuildx is a Docker CLI plugin that extends build capabilities using BuildKit. Cache backends support credentials by setting secrets directly as attribute values in cache-to/cache-from configuration. When supplied as user input, these secure values may be inadvertently captured in OpenTelemetry traces as part of the arguments and flags for the traced CLI command. OpenTelemetry traces are also saved in BuildKit daemon's history records. This vulnerability does not impact secrets passed to the Github cache backend via environment variables or registry authentication.
Read the publisher's advisorynvd · CVE-2025-0495
PublishedBuildx is a Docker CLI plugin that extends build capabilities using BuildKit. Cache backends support credentials by setting secrets directly as attribute values in cache-to/cache-from configuration. When supplied as user input, these secure values may be inadvertently captured in OpenTelemetry traces as part of the arguments and flags for the traced CLI command. OpenTelemetry traces are also saved in BuildKit daemon's history records. This vulnerability does not impact secrets passed to the Github cache backend via environment variables or registry authentication.
Read the publisher's advisoryosv · GHSA-m4gq-fm9h-8q75
Published### Impact Some cache backends allow configuring their credentials by setting secrets directly as attribute values in `cache-to/cache-from` configuration. If this was done by the user, these secure values could be captured together with OpenTelemetry trace as part of the arguments and flags for the traced CLI command. Passing tokens to Github cache backend via environment variables or using registry authentication is not affected. If you passed a token value like this and use a custom OpenTelemetry collector for computing traces you should make sure that your traces are kept secure. OpenTelemetry traces are also saved in BuildKit daemon's history records. ### Patches Issue has been fixed in Buildx v0.21.3 or newer. ### Workarounds Avoid passing cache backend credentials with CLI arguments. Make sure access to traces and BuildKit history records is kept secure.
Read the publisher's advisoryosv · GO-2025-3527
Publishedbuildx allows a possible credential leakage to telemetry endpoint in github.com/docker/buildx
Read the publisher's advisoryAffected versions, risk and source history
Related advisories and sources
Publishers link these advisories through the identifiers shown below. A shared identifier or date alone does not tell you whether your software is affected or whether the advisories describe the same cause.
CVE-2025-0495 · CVE overview and exploitation status
cve-program · CVE-2025-0495
euvd · EUVD-2025-6497
nvd · CVE-2025-0495
osv · GHSA-m4gq-fm9h-8q75
- https://github.com/docker/buildx/security/advisories/GHSA-m4gq-fm9h-8q75
- https://nvd.nist.gov/vuln/detail/CVE-2025-0495
- https://github.com/docker/buildx/commit/18ccba072076ddbfb0aeedd6746d7719b0729b58
- https://github.com/docker/buildx
osv · GO-2025-3527
Related changes
Linked by CVE identifierNo related changes are available here.