Sensitive Data Exposure in Docker Buildx Due to OpenTelemetry Tracing

docker-buildx Updated 02 Oct 2025

Summary

17/03/2025
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2025-0495: Buildx is a Docker CLI plugin that extends build capabilities using BuildKit. Affects docker-buildx versions < 0.13.1+ds1-3. Fixed in 0.13.1+ds1-3. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Docker Buildx is a powerful CLI plugin for Docker that enhances build capabilities by leveraging BuildKit. It allows users to create and manage multi-platform images and provides advanced caching mechanisms. However, its integration with OpenTelemetry for tracing can inadvertently expose sensitive data when user input is mishandled.

Vulnerability Detail

The vulnerability arises from the way Docker Buildx handles cache backends that support credentials. When these credentials are supplied as user input, they can be captured in OpenTelemetry traces, which are logged as part of the command's arguments and flags. This exposure can lead to unauthorized access to sensitive information, as traces are also stored in the BuildKit daemon's history records. Importantly, this issue does not affect secrets passed to the Github cache backend via environment variables or registry authentication.

How To Fix

Minimum fixed version

0.13.1+ds1-3

This is the first release that contains the fix.

sudo apt-get install --only-upgrade docker-buildx

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, avoid using user input for sensitive credentials in cache-to/cache-from configurations. Instead, utilize environment variables for passing secrets, which will not be captured in OpenTelemetry traces.

Conclusion

The vulnerability in Docker Buildx highlights the importance of secure handling of sensitive data, especially in tracing mechanisms. Users are encouraged to update to the latest version to mitigate risks and ensure the security of their applications.

See every vulnerability recorded for docker-buildx →

Share this vulnerability

FAQ

The vulnerability allows sensitive credentials to be captured in OpenTelemetry traces due to improper handling of user input.

You can use Vulert's playground at Vulert Scanner to check if your application is affected without needing to sign up.

The main risk is unauthorized access to sensitive data, which could lead to security breaches and data leaks.

Yes, the vulnerability is fixed in version 0.13.1+ds1-3 of Docker Buildx.

If an immediate update is not possible, avoid using user input for sensitive credentials and rely on environment variables instead.

Related vulnerabilities

Recent vulnerabilities recorded for docker-buildx.

How To Fix

Minimum fixed version

0.13.1+ds1-3

This is the first release that contains the fix.

sudo apt-get install --only-upgrade docker-buildx

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback