Vulnerability · Published Mar 17, 2025 · Assigned by Docker
CVE-2025-0495Secrets leakage to telemetry endpoint via cache backend configuration via buildx
Medium 4.1
In plain English
A medium-severity sensitive data in logs in buildx from docker. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 9% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:13 | docker-buildx | 0.13.1+ds1-3 | DEBIAN-CVE-2025-0495 |
| Debian:14 | docker-buildx | 0.13.1+ds1-3 | DEBIAN-CVE-2025-0495 |
| Go | github.com/docker/buildx | 0.21.3 | GHSA-m4gq-fm9h-8q75 |
| Go | github.com/docker/buildx | 0.21.3 | GO-2025-3527 |
| Ubuntu:22.04:LTS | docker-buildx | no fix listed | UBUNTU-CVE-2025-0495 |
| Ubuntu:24.04:LTS | docker-buildx | no fix listed | UBUNTU-CVE-2025-0495 |
| Ubuntu:25.10 | docker-buildx | no fix listed | UBUNTU-CVE-2025-0495 |
| Ubuntu:26.04:LTS | docker-buildx | no fix listed | UBUNTU-CVE-2025-0495 |
| Ubuntu:26.10 | docker-buildx | no fix listed | UBUNTU-CVE-2025-0495 |
Affected products (as reported)
Weakness: CWE-532 · Vector: CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:P/VC:L/VI:N/VA:N/SC:H/SI:N/SA:N