CVE-2025-6624·Docker vulnerability
Versions of the package snyk before 1.1297.3 are vulnerable to Insertion of Sensitive Information into Log File through local Snyk CLI debug logs. Container Registry credentials provided via environment variables or command line arguments can be exposed when executing Snyk CLI in DEBUG or DEBUG/TRACE mode. The issue affects the following Snyk commands: 1. When snyk container test or snyk container monitor commands are run against a container registry, with debug mode enabled, the container registry credentials may be written into the local Snyk CLI debug log. This only happens with credentials specified in environment variables (SNYK_REGISTRY_USERNAME and SNYK_REGISTRY_PASSWORD), or in the CLI (--password/-p and --username/-u). 2. When snyk auth command is executed with debug mode enabled AND the log level is set to TRACE, the Snyk access / refresh credential tokens used to connect the CLI to Snyk may be written into the local CLI debug logs. 3. When snyk iac test is executed with a Remote IAC Custom rules bundle, debug mode enabled, AND the log level is set to TRACE, the docker registry token may be written into the local CLI debug logs.
- Severity
- high
- Software
- Docker
- Fixed in
- 1.1297.3
- Published
- 2025-06-26
Affected versions
Until: 1.1297.3
Fixed in: 1.1297.3
How to fix this CVE
Update Snyk CLI to version 1.1297.3 or later to prevent credential leakage in debug logs. This vulnerability allows container registry credentials, authentication tokens, and Docker registry access tokens to be written to local debug log files when debug or trace logging modes are enabled. Immediate patching is recommended for all Docker users who run Snyk CLI commands with debugging enabled.
sudo dnf upgrade docker-ceDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check Docker version with 'docker --version' and verify it includes Snyk CLI or run 'snyk --version' to check the CLI version directly
- Step 2: Search for debug log files in your home directory and temporary paths with 'find ~/.snyk* ~/.config/snyk* /tmp -name '*debug*' -o -name '*.log' 2>/dev/null'
- Step 3: Grep for exposed credentials in logs with 'grep -r "SNYK_REGISTRY_USERNAME\|SNYK_REGISTRY_PASSWORD\|Authorization\|Bearer" ~/.snyk* ~/.config/snyk* /tmp 2>/dev/null | head -20'
- Step 4: After upgrading, re-run 'snyk --version' and confirm the version is 1.1297.3 or higher, then delete old debug logs with 'rm -rf ~/.snyk* ~/.config/snyk*/*debug* /tmp/*snyk*.log'
FAQ
What is CVE-2025-6624?
CVE-2025-6624 is a credential exposure vulnerability in Snyk CLI where sensitive information such as container registry credentials, authentication tokens, and API keys are inadvertently written to local debug log files when debug or trace logging levels are enabled.
Is CVE-2025-6624 being actively exploited?
No, CVE-2025-6624 is not currently listed on the CISA Known Exploited Vulnerabilities (KEV) catalog and no public exploits are available. However, the local nature of the vulnerability means attackers with file system access could retrieve exposed credentials.
What versions of Docker are affected by CVE-2025-6624?
All versions of Snyk CLI prior to 1.1297.3 are affected. The vulnerability impacts the snyk container test, snyk container monitor, snyk auth, and snyk iac test commands when executed with debug or trace logging enabled.
How do I check if my server is vulnerable to CVE-2025-6624?
Run 'snyk --version' to check your installed version. If the version is below 1.1297.3, your system is vulnerable. Additionally, check for debug logs in '~/.snyk' and '~/.config/snyk' directories that may contain exposed credentials.
Does Defensia detect CVE-2025-6624?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Snyk CLI or Docker is installed on a monitored server, CVE-2025-6624 will appear in your dashboard with remediation steps.
Related Docker CVEs
References
- https://docs.snyk.io/snyk-cli/debugging-the-snyk-cli
- https://github.com/snyk/cli/commit/38322f377da7e5f1391e1f641710be50989fa4df
- https://github.com/snyk/cli/releases/tag/v1.1297.3
- https://github.com/snyk/go-application-framework/commit/ca7ba7d72e68455afb466a7a47bb2c9aece86c18
- https://security.snyk.io/vuln/SNYK-JS-SNYK-10497607
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2025-6624. Free for 1 server.
Get started free