CVE-2025-6624 Snyk CLI Insertion of Sensitive Information into Log File allowed in DEBUG or DEBUG/TRACE mode
Attackers with local access can read sensitive container registry and authentication credentials from Snyk CLI debug logs when debug or trace modes are enabled.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2025-6624?
CVE-2025-6624 is a low-severity vulnerability in snyk, published on 26 Jun 2025. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official 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. 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.
Weakness: CWE-532
Which versions are affected by CVE-2025-6624?
5 open source packages ship an affected version, including github.com/snyk/go-application-framework and snyk. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
github.com/snyk/go-application-framework Go | All versions | None |
github.com/snyk/go-application-framework Go | All versions | None |
github.com/snyk/go-application-framework Go | All versions | None |
snyk npm | All versions | 1.1297.3 |
snyk npm | All versions | 1.1297.3 |
Products include Snyk Snyk Cli.
How do I fix CVE-2025-6624?
Upgrade to a fixed version.
Is CVE-2025-6624 being exploited?
There is no known exploitation of CVE-2025-6624 in the wild and no public exploit code.
Other vulnerabilities in snyk
Sources
Also known as GHSA-6hwc-9h8r-3vmf, GO-2025-3789.