CVE-2025-0495docker buildx
Medium 4.1
Follow: this CVE · docker · docker buildx We alert you by email or Slack (account required).
- Priority
- 25
- CVSS 4.0
- 4.1
- EPSS
- 0.3% probability of exploitation in 30 days · percentile 14
- Auth required
- Yes
- Published
- Mar 17, 2025
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-532
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
What happens
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.
What to do
- Apply the vendor's security update for buildx.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | github.com/docker/buildx |
< 0.21.3 |
0.21.3 |
go get github.com/docker/buildx@v0.21.3 |
| Go | github.com/docker/buildx |
< 0.21.3 |
0.21.3 |
go get github.com/docker/buildx@v0.21.3 |
Per OSV / GitHub Advisories (GHSA-m4gq-fm9h-8q75, GO-2025-3527). Check the version in your lockfile before upgrading.
Affected products
- docker · buildx
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official advisories
- Security update for docker-compose · SUSE · SUSE-SU-2026:22887-1 · Jul 21, 2026 Critical
- Security update for docker-compose · SUSE · openSUSE-SU-2026:21247-1 · Jul 7, 2026 Critical
- Security update for docker-compose · SUSE · SUSE-SU-2026:22546-1 · Jul 7, 2026 Critical
Also: SUSE (+2)
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.