{"id":"CVE-2025-0495","aliases":["CVE-2025-0495","GHSA-m4gq-fm9h-8q75","GO-2025-3527"],"related":["CGA-jqqg-39q6-6jp8"],"kind":"vulnerability","state":"published","title":"Secrets leakage to telemetry endpoint via cache backend configuration via buildx","summary":"Buildx is a Docker CLI plugin that extends build capabilities using BuildKit.\n\nCache 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.\n\n\nThis vulnerability does not impact secrets passed to the Github cache backend via environment variables or registry authentication.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Buildx is a Docker CLI plugin that extends build capabilities using BuildKit.\n\nCache 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.\n\n\nThis vulnerability does not impact secrets passed to the Github cache backend via environment variables or registry authentication.","source":"cvelist"},{"lang":"en","text":"### Impact\nSome cache backends allow configuring their credentials by setting secrets directly as attribute values in `cache-to/cache-from` configuration. If this was done by the user, these secure values could be captured together with OpenTelemetry trace as part of the arguments and flags for the traced CLI command. Passing tokens to Github cache backend via environment variables or using registry authentication is not affected.\n\nIf you passed a token value like this and use a custom OpenTelemetry collector for computing traces you should make sure that your traces are kept secure. OpenTelemetry traces are also saved in BuildKit daemon's history records.\n\n### Patches\nIssue has been fixed in Buildx v0.21.3 or newer.\n\n### Workarounds\nAvoid passing cache backend credentials with CLI arguments. Make sure access to traces and BuildKit history records is kept secure.","format":"markdown","source":"ghsa"},{"lang":"en","text":"buildx allows a possible credential leakage to telemetry endpoint in github.com/docker/buildx","format":"markdown","source":"go"},{"lang":"es","text":"Buildx es un complemento de Docker CLI que amplía las capacidades de compilación mediante BuildKit. Los backends de caché admiten credenciales configurando secretos directamente como valores de atributo en la configuración de caché de origen/destino. Al proporcionarse como entrada del usuario, estos valores seguros pueden capturarse accidentalmente en los seguimientos de OpenTelemetry como parte de los argumentos y marcas del comando CLI rastreado. Los seguimientos de OpenTelemetry también se guardan en los registros históricos del demonio de BuildKit. Esta vulnerabilidad no afecta a los secretos transferidos al backend de caché de Github mediante variables de entorno ni autenticación de registro.","source":"nvd"}],"published":"2025-03-17T19:21:11.295Z","modified":"2026-09-10T03:50:56.838Z","severity":{"scorer":"Docker","scheme":"CVSS:4.0","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","score":4.1,"rating":"MEDIUM"},"severities":[{"scorer":"Docker","scheme":"CVSS:4.0","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","score":4.1,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","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","rating":"MEDIUM"}],"cwes":["CWE-532"],"affected":[{"ranges":[{"type":"semver","introduced":"0","lastAffected":"0.21.2","status":"affected"}],"vendor":"docker","product":"buildx","package":"buildx","repo":"https://github.com/docker/buildx","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.21.3"}],"ecosystem":"Go","package":"github.com/docker/buildx","purl":"pkg:golang/github.com/docker/buildx","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.21.3"}],"ecosystem":"Go","package":"github.com/docker/buildx","purl":"pkg:golang/github.com/docker/buildx","source":"go"}],"references":[{"url":"https://github.com/docker/buildx","tags":["package"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/docker/buildx/security/advisories/GHSA-m4gq-fm9h-8q75","tags":["advisory","web"],"sources":["ghsa","go"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-0495","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/docker/buildx/commit/18ccba072076ddbfb0aeedd6746d7719b0729b58","tags":["fix","web"],"sources":["ghsa","go"]}],"credits":[],"assigner":"Docker","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-03-18T16:25:23.455Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-0495","url":"https://www.cve.org/CVERecord?id=CVE-2025-0495","licence":"CVE Terms of Use","modified":"2025-03-18T16:25:42.668Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-m4gq-fm9h-8q75","url":"https://github.com/advisories/GHSA-m4gq-fm9h-8q75","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:56.838Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2025-3527","url":"https://pkg.go.dev/vuln/GO-2025-3527","licence":"CC-BY-4.0","modified":"2026-02-04T02:54:48.132Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-0495","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-0495","licence":"Public domain","modified":"2026-06-17T08:26:35.910Z"}],"updatedAt":"2026-11-25T22:58:55.324Z","epss":{"score":0.00196,"percentile":0.09766,"date":"2026-12-02T12:00:21.000Z"}}