CVE-2025-6624
Severity CVSS v4.0:
LOW
Type:
CWE-532
Information Exposure Through Log Files
Publication date:
26/06/2025
Last modified:
09/07/2025
Description
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.<br />
<br />
The issue affects the following Snyk commands:<br />
<br />
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).<br />
<br />
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.<br />
<br />
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.
Impact
Base Score 4.0
2.40
Severity 4.0
LOW
Base Score 3.x
7.20
Severity 3.x
HIGH
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:a:snyk:snyk_cli:*:*:*:*:*:*:*:* | 1.1297.3 (excluding) |
To consult the complete list of CPE names with products and versions, see this page
References to Advisories, Solutions, and Tools
- 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



