CVE-2025-0495: buildx allows a possible credential leakage to telemetry endpoint
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.
References
Detect and mitigate CVE-2025-0495 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →