CVE-2025-0495

Medium

Description

Buildx 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.

SeverityMedium
CVSS4.1
Exploit probability—
ProductGithub.com/docker/buildx
PublishedMar 17, 2025
First seenMar 17, 2025
Weakness typeCWE-532CWE-532

How to fix

Update
  • github.com/docker/buildx0.21.3 or later

Affected products

ProductAffected versionsFixed in
github.com/docker/buildxGov < 0.21.30.21.3

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.

CVE-2025-0495 · Github.com/docker/buildx · Dark Radar