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.

Severity (CVSS 4.0)4.1Medium
Exploit odds (30 days)0.2%top 90.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Debian:13docker-buildx0.13.1+ds1-3DEBIAN-CVE-2025-0495
Debian:14docker-buildx0.13.1+ds1-3DEBIAN-CVE-2025-0495
Gogithub.com/docker/buildx0.21.3GHSA-m4gq-fm9h-8q75
Gogithub.com/docker/buildx0.21.3GO-2025-3527
Ubuntu:22.04:LTSdocker-buildxno fix listedUBUNTU-CVE-2025-0495
Ubuntu:24.04:LTSdocker-buildxno fix listedUBUNTU-CVE-2025-0495
Ubuntu:25.10docker-buildxno fix listedUBUNTU-CVE-2025-0495
Ubuntu:26.04:LTSdocker-buildxno fix listedUBUNTU-CVE-2025-0495
Ubuntu:26.10docker-buildxno fix listedUBUNTU-CVE-2025-0495

Affected products (as reported)

VendorProductVersions
docker buildx 0 – through 0.21.2

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

References