CVE-2025-6587 Exposure of system environment variables in Docker Desktop diagnostic logs

Medium 5.2 Published Updated

Attackers with log access can read sensitive environment variables from Docker Desktop diagnostics, potentially leading to unauthorized system access.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
None listed

What is CVE-2025-6587?

CVE-2025-6587 is a medium-severity vulnerability in Docker Desktop, published on 3 Jul 2025. It can only be exploited from the same machine or local network, with no action from the victim.

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.

Weakness: CWE-532

Which versions are affected by CVE-2025-6587?

How do I fix CVE-2025-6587?

No fix has been published for CVE-2025-6587 yet. Limit exposure of the affected software until one is available.

Is CVE-2025-6587 being exploited?

There is no known exploitation of CVE-2025-6587 in the wild and no public exploit code.

Sources

Also known as GHSA-qj23-w8jm-w8wv.

Is CVE-2025-6587 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free