CVE-2025-0495 Secrets leakage to telemetry endpoint via cache backend configuration via buildx
Attackers can read secrets from cache backend configurations if they are passed as CLI arguments and captured in OpenTelemetry traces.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2025-0495?
CVE-2025-0495 is a medium-severity vulnerability in docker buildx, published on 17 Mar 2025. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
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.
Weakness: CWE-532
Which versions are affected by CVE-2025-0495?
3 open source packages ship an affected version, including github.com/docker/buildx.
| Package | Affected | Fixed in |
|---|---|---|
github.com/docker/buildx Go | All versions | 0.21.3 |
github.com/docker/buildx Go | All versions | 0.21.3 |
github.com/docker/buildx Go | All versions | 0.21.3 |
Linux distribution packages (3)
docker SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5 | All versions | 27.5.1_ce-98.129.1 |
docker-stable SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5 | All versions | 24.0.9_ce-1.14.1 |
docker-stable openSUSE:Tumbleweed | All versions | 24.0.9_ce-9.1 |
How do I fix CVE-2025-0495?
Upgrade github.com/docker/buildx to 0.21.3 or later.
Is CVE-2025-0495 being exploited?
There is no known exploitation of CVE-2025-0495 in the wild and no public exploit code.
Sources
Also known as AZL-58854, AZL-58863, BELL-CVE-2025-0495, DEBIAN-CVE-2025-0495, GHSA-m4gq-fm9h-8q75, GO-2025-3527 and 4 more.