CVE-2025-0495
Secrets leakage to telemetry endpoint via cache backend configuration via buildx
Reported by docker · Published March 17, 2025
github.com/docker/buildx is fixed in 0.21.3 (Go Modules)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| github.com/docker/buildx | Go Modules | 0.21.3 |
| kubescape | Wolfi | 3.0.43-r0 |
| docker-compose | Chainguard | 2.34.0-r1 |
| kubescape | Chainguard | 3.0.43-r0 |
| docker-compose-fips | Chainguard | 2.34.0-r2 |
| docker-compose | Wolfi | 2.34.0-r1 |
| buildx | docker | 0.21.2 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| docker | buildx | 0 |
| docker | buildx | 0 |
Timeline
- Mar 17, 2025 CVE Published
- Mar 17, 2025 PoC Published (5 in total, the first dated here)
- Mar 18, 2025 EPSS Score (30 in total, the first dated here)
- Mar 18, 2025 CVE Updated
- Mar 17, 2026 Security Advisory
- Jun 26, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-0495
vulnetix vdb fixes CVE-2025-0495
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-0495/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart