Secrets leakage to telemetry endpoint via cache backend configuration via buildx
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- Passive
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- Low · None · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-532.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Docker | buildx | up to 0.21.2 | — | No fix listed | CNA |
| — | github.com/docker/buildx (Go) | before 0.21.3 | 0.21.3 | Patch available | GHSA-m4gq-fm9h-8q75 |
- buildx VendorDocker Affected up to 0.21.2 Fixed in — No fix listed CNA
- github.com/docker/buildx (Go) Vendor— Affected before 0.21.3 Fixed in 0.21.3 Patch available GHSA-m4gq-fm9h-8q75
Remediation
- Fix · GHSA-m4gq-fm9h-8q75 github.com/docker/buildx (Go) Fixed in 0.21.3 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2025-0495
- 2026-10-03 Alias added: GHSA-m4gq-fm9h-8q75
References
More Docker vulnerabilities
- TI-2019-11833 Docker Desktop Community Edition before 2.1.0.1 allows local users to gain privileges by… KEVCVSS 3.1HIGH 7.8
- TI-2019-04061 runc through 1.0-rc6, as used in Docker before 18.09.2 and other products, allows… CVSS 3.1HIGH 8.6
- TI-2025-08316 Docker Desktop allows unauthenticated access to Docker Engine API from containers CVSS 4.0CRITICAL 9.3
- TI-2025-02823 Elevation of Privilege in Docker Desktop for Windows during Upgrade due to Insecure Directory Deletion CVSS 4.0HIGH 7.3
- TI-2026-14229 Tar extraction in moby/go-archive can write outside the destination directory via link following CVSS 4.0HIGH 7.1
- TI-2023-21271 Docker Machine through 0.16.2 allows an attacker, who has control of a worker node, to… CVSS 3.1MEDIUM 6.5
Sources
- CVE-2025-0495 · CVE Program
- CVE-2025-0495 · NVD
- FIRST EPSS
- GHSA-m4gq-fm9h-8q75 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences