VDB

CVE-2025-0495

CVE-2025-0495 PUBLISHED CVSS 4.1 MEDIUM

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.

PackageEcosystemFixed in
github.com/docker/buildxGo Modules0.21.3
kubescapeWolfi3.0.43-r0
docker-composeChainguard2.34.0-r1
kubescapeChainguard3.0.43-r0
docker-compose-fipsChainguard2.34.0-r2
docker-composeWolfi2.34.0-r1
buildxdocker0.21.2

Risk scores

CVSS 4.0
4.1
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

Affected products

VendorProductVersions
dockerbuildx0
dockerbuildx0

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

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›