CVE-2025-6587 in Docker Desktop
System environment variables are recorded in Docker Desktop diagnostic logs, when using shell auto-completion. This leads to unintentional disclosure of sensitive information such as api keys, passwords, etc. A malicious actor with read access to these logs could obtain secrets and further use them to gain unauthor...
Affects 1 product from 1 vendor. Facts below cite their sources.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Docker | Docker Desktop | < 4.43.0 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official description
System environment variables are recorded in Docker Desktop diagnostic logs, when using shell auto-completion. This leads to unintentional disclosure of sensitive information such as api keys, passwords, etc. A malicious actor with read access to these logs could obtain secrets and further use them to gain unauthorized access to other systems. Starting with version 4.43.0 Docker Desktop no longer logs system environment variables as part of diagnostics log collection.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2025-6587 |
|---|---|
| BreachSpider ID | BS-2025-GLOBAL-038299-I |
| Published | 2025-07-03 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-532: CWE-532
Related attack patterns (CAPEC)
CAPEC-215 Fuzzing for application mapping via CWE-532
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
Docker Desktop diagnostic logs record system environment variables during shell auto-completion, potentially exposing sensitive information such as API keys and passwords.
A malicious actor with read access to Docker Desktop diagnostic logs can obtain sensitive information, which could be used to gain unauthorized access to other systems.
Questions
What is CVE-2025-6587?
Docker Desktop diagnostic logs record system environment variables during shell auto-completion, potentially exposing sensitive information such as API keys and passwords.
Is CVE-2025-6587 actively exploited?
No confirmed active exploitation of CVE-2025-6587 as of 2026-09-25.
How do I remediate CVE-2025-6587?
Priority: HIGH. Advisory: https://docs.docker.com/desktop/troubleshoot-and-support/troubleshoot/#check-the-logs
What systems are affected by CVE-2025-6587?
CVE-2025-6587 affects Docker Docker Desktop.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Docker","product":"Docker Desktop","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.