The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-0495

CVE-2025-0495: Docker Buildx Information Disclosure Flaw

CVE-2025-0495 is an information disclosure vulnerability in Docker Buildx that exposes cache backend credentials through OpenTelemetry traces. This article covers the technical details, affected systems, and mitigation.

Updated: January 22, 2026

CVE-2025-0495 Overview

Docker Buildx, a CLI plugin that extends Docker build capabilities using BuildKit, contains an information disclosure vulnerability affecting cache backend credential handling. When cache backends are configured with credentials supplied directly as attribute values in cache-to or cache-from configuration, these sensitive values may be inadvertently captured in OpenTelemetry traces. The exposed credentials become part of the arguments and flags for the traced CLI command and are also persisted in BuildKit daemon's history records.

This vulnerability represents a significant concern for CI/CD environments and development workflows where cache backend credentials are passed as user input rather than through secure mechanisms.

Critical Impact

Sensitive cache backend credentials may be exposed through OpenTelemetry telemetry data and BuildKit daemon history, potentially allowing unauthorized access to cache storage systems.

Affected Products

  • Docker Buildx CLI plugin (versions prior to patch)
  • BuildKit daemon with OpenTelemetry tracing enabled
  • CI/CD systems utilizing Buildx cache backends with inline credentials

Discovery Timeline

  • 2025-03-17 - CVE CVE-2025-0495 published to NVD
  • 2025-03-17 - Last updated in NVD database

Technical Details for CVE-2025-0495

Vulnerability Analysis

This vulnerability falls under CWE-532 (Insertion of Sensitive Information into Log File), where sensitive credential data is inadvertently written to telemetry and history records. The issue arises from the way Docker Buildx processes cache backend configuration parameters. When users specify credentials directly in the cache-to or cache-from flags, these values are captured in their entirety by the OpenTelemetry instrumentation layer.

The exposure occurs in two distinct locations: OpenTelemetry trace data, which may be exported to external monitoring systems, and BuildKit daemon history records stored locally. This dual exposure pathway increases the risk surface, as credentials could be accessed through either the telemetry infrastructure or direct access to the BuildKit daemon's storage.

It's important to note that this vulnerability does not impact credentials passed to the GitHub cache backend via environment variables or registry authentication mechanisms, which use more secure credential handling paths.

Root Cause

The root cause lies in insufficient sanitization of command-line arguments before they are captured by OpenTelemetry instrumentation. The Buildx CLI passes cache backend configuration, including embedded credentials, directly to the tracing layer without redacting sensitive values. The design assumed credentials would be provided through secure channels (environment variables, credential helpers) rather than inline in configuration attributes.

Attack Vector

The attack vector requires local access to either the OpenTelemetry trace collection endpoint or the BuildKit daemon's history storage. An attacker with access to these data stores could extract cache backend credentials by examining traced CLI commands or daemon history entries. This is particularly concerning in shared development environments, multi-tenant CI/CD systems, or scenarios where telemetry data is aggregated to centralized monitoring platforms with broad access.

The vulnerability can be exploited by:

  1. Accessing OpenTelemetry trace exports containing Buildx command traces
  2. Querying BuildKit daemon history records
  3. Intercepting telemetry data in transit to collection endpoints

Detection Methods for CVE-2025-0495

Indicators of Compromise

  • Unusual access patterns to BuildKit daemon history files
  • Unauthorized queries to OpenTelemetry trace storage
  • Anomalous authentication attempts using cache backend credentials
  • Unexpected access to telemetry collection endpoints

Detection Strategies

  • Monitor access logs for BuildKit daemon storage directories
  • Audit OpenTelemetry collector access and query patterns
  • Review CI/CD pipeline logs for inline credential usage in Buildx commands
  • Implement alerting on suspicious authentication to cache backend systems

Monitoring Recommendations

  • Enable comprehensive audit logging on telemetry collection infrastructure
  • Monitor for credential usage from unexpected sources or locations
  • Implement anomaly detection on cache backend authentication patterns
  • Track access to BuildKit daemon state directories

How to Mitigate CVE-2025-0495

Immediate Actions Required

  • Audit existing Buildx configurations for inline credentials in cache-to and cache-from flags
  • Migrate cache backend credentials to environment variables or secure credential helpers
  • Review and rotate any credentials that may have been exposed through telemetry
  • Restrict access to OpenTelemetry trace data and BuildKit daemon history

Patch Information

Organizations should monitor the Docker Buildx GitHub Repository for security updates addressing this vulnerability. Apply patches as they become available and upgrade to patched versions of Docker Buildx and BuildKit.

Workarounds

  • Use environment variables instead of inline attribute values for cache backend credentials
  • Configure registry authentication through Docker's credential helper system
  • Disable or restrict OpenTelemetry tracing in sensitive environments until patched
  • Implement access controls on BuildKit daemon history storage
  • Purge existing BuildKit history that may contain exposed credentials
bash
# Configuration example - Use environment variables instead of inline credentials
# Avoid this pattern (vulnerable):
# docker buildx build --cache-to type=s3,access_key=AKIAXXXXXXXX,secret_key=secret123

# Use this pattern instead (secure):
export AWS_ACCESS_KEY_ID=AKIAXXXXXXXX
export AWS_SECRET_ACCESS_KEY=secret123
docker buildx build --cache-to type=s3,region=us-east-1,bucket=my-cache

# Clear BuildKit daemon history to remove potentially exposed credentials
docker buildx prune --all

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechDocker

  • SeverityMEDIUM

  • CVSS Score4.1

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS 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
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-532
  • Technical References
  • GitHub Docker Buildx Repository
  • Related CVEs
  • CVE-2025-3911: Docker Desktop Information Disclosure Flaw

  • CVE-2023-5166: Docker Desktop Information Disclosure Flaw

  • CVE-2025-15558: Docker CLI Privilege Escalation Vulnerability

  • CVE-2026-28400: Docker Model Runner Privilege Escalation
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English