Skip to main content

Snyk CLI CVE-2025-6624

| EUVDEUVD-2025-19191 LOW
Insertion of Sensitive Information into Log File (CWE-532)
2025-06-26 report@snyk.io GHSA-6hwc-9h8r-3vmf
Low
Disputed · 1.2 NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Enable Snyk CLI debug mode
  2. Delivery
    Execute container/auth/iac command with credentials via flags or env vars
  3. Exploit
    Credentials written verbatim to local debug log
  4. Execution
    Attacker obtains read access to log file
  5. Persist
    Extract registry credentials or Snyk tokens
  6. Impact
    Authenticate to container registry or Snyk platform

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A09:2025 - Security Logging & Alerting Failures
ASVS 5.0
V16 - Security Logging and Error Handling Log data sanitization
Exploitation Conditions

All of the following conditions must be satisfied simultaneously: (1) Snyk CLI version prior to 1.1297.3 is in use; (2) debug mode is explicitly enabled via the -d flag or an equivalent DEBUG environment variable - this is non-default and typically activated only during troubleshooting or CI diagnostics; (3) for container registry credential exposure via snyk container test or snyk container monitor, credentials must be supplied through SNYK_REGISTRY_USERNAME/SNYK_REGISTRY_PASSWORD environment variables or the --username/-u / --password/-p CLI flags - credentials stored in Docker credential helpers are not affected; (4) for Snyk OAuth token exposure via snyk auth, the log level must additionally be set to TRACE via SNYK_LOG_LEVEL=trace; (5) for docker registry token exposure via snyk iac test, a Remote IAC Custom rules bundle must be configured and the log level must be TRACE; (6) the attacker must have local read access to the resulting debug log file, whether directly on disk, via CI artifact retention, or through log aggregation. Exploitation is structurally limited by the local-only attack vector, the non-default debug logging requirement, and the specific credential-passing mechanisms that trigger logging.

Impact

The vendor-assigned CVSS 4.0 score of 1.2 accurately reflects the extremely restrictive exploitation conditions: local attack vector, high complexity, explicit prerequisites, high privilege, and passive user interaction all foreclose casual or remote exploitation. EPSS sits at 0.03% (8th percentile), corroborating the absence of any automated exploitation pathway, and no CISA KEV listing exists. The E:P modifier in the CVSS 4.0 vector denotes proof-of-concept status, which here reflects the trivially self-demonstrable nature of the flaw rather than a dedicated exploit tool. The real-world risk differential lies entirely in subsequent-system impact: leaked container registry credentials or Snyk OAuth tokens can compromise external registries and platform accounts at high severity (SC:H/SI:H/SA:H in the vendor vector), meaning that even a mid-sized municipal IT team in ustka running a Snyk-enabled CI/CD pipeline should audit whether debug-mode runs are captured by centralized log aggregators or artifact retention systems, since those are the primary higher-risk exposure paths. The threat is not opportunistic remote attack but rather unintentional credential persistence in CI build logs, SIEM forwarding, or shared developer machines where log files carry world-readable permissions. Overall this is a low-urgency patching item in isolation but warrants attention wherever debug CLI output is systematically archived.

Exploit ScenarioDerived

A developer troubleshooting a container scan runs snyk container test registry.example.com/app:latest --username=ci-user --password=s3cr3t -d in a CI/CD pipeline configured to archive stderr as a build artifact. The debug log, containing the base64-encoded Basic Authorization header and the raw flag values, is retained in the artifact store accessible to all project members. A low-privileged team member or an attacker who compromises the artifact store downloads the log, extracts the registry credentials, and gains authenticated push/pull access to the container registry.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Sep 16, 2026

Snyk CLI before version 1.1297.3 writes container registry credentials and Snyk authentication tokens verbatim into local debug log files when invoked with DEBUG or TRACE logging levels, enabling any party with read access to those logs to harvest credentials for downstream systems. Three command paths are affected: snyk container test/monitor (registry credentials via env vars or CLI flags), snyk auth at TRACE level (Snyk OAuth tokens), and snyk iac test with remote IAC bundles at TRACE level (docker registry tokens). No public exploit or active exploitation has been identified; vendor patch v1.1297.3 released 2025-06-23 is confirmed available.

RemediationAI

Upgrade the Snyk CLI to version 1.1297.3 or later - the vendor-confirmed patch is documented at github.com/snyk/cli/releases/tag/v1.1297.3 with code changes in commits 38322f37 (CLI) and ca7ba7d7 (go-application-framework). If immediate upgrade is not feasible, the following compensating controls reduce exposure: avoid supplying credentials via --username/-u, --password/-p, SNYK_REGISTRY_USERNAME, or SNYK_REGISTRY_PASSWORD when debug mode is active - prefer Docker credential helpers instead, as these are not logged; disable DEBUG and TRACE log levels in CI/CD pipelines except during active troubleshooting, and ensure those sessions are not artifact-archived; restrict file permissions on CLI debug logs to 600; and use short-lived, narrowly scoped registry tokens in place of persistent passwords so that any inadvertently logged credential has a minimal blast radius. Review centralized SIEM or log-forwarding configurations to confirm debug-level CLI output is either excluded or masked before transmission.

Affected VersionsENISA

snyk 0 <1.1297.3

Affected Packages

go github.com/snyk/go-application-framework no fix
go snyk fix: 1.1297.3
npm github.com/snyk/go-application-framework no fix
npm snyk fix: 1.1297.3
euvd snyk fix: 1.1297.3

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in go, npm, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The Snyk CLI (cpe:2.3:a:snyk:snyk_cli:*:*:*:*:*:*:*:*) is a developer-facing security scanning tool supporting Docker/OCI container analysis and infrastructure-as-code auditing, written across a Go core (cliv2) and TypeScript legacy layer. The root cause is CWE-532 (Insertion of Sensitive Information into Log File): HTTP Basic Authentication credentials - base64-encoded username:password pairs, raw --username/-u and --password/-p flag values, and Snyk OAuth access/refresh tokens - were written without scrubbing to debug log output. The underlying snyk/go-application-framework library lacked a unified credential-scrubbing layer; sanitization logic was duplicated and incomplete. The fix in v1.1297.3 centralizes SENSITIVE_FIELD_NAMES and SANITIZE_REPLACEMENT_STRING constants in pkg/logging, adds regex-based masking covering JSON credential fields and CLI argument patterns (-u/-p with and without '='), and removes a direct debug call in the TypeScript layer (src/cli/args.ts) that logged the full argument vector including credential flags.

Know when Snyk Cli gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Sources disagree (Low–High)
NVD PRIMARY 1.2 LOW
CVSS:4.0/AV:L/AC:H/AT:P/PR:H/UI:P/VC:L/VI:N/VA:N/SC:H/SI:H/SA:H/E:P
vuln.today AI 5.3 MEDIUM

Local file read needed; debug mode non-default raises AC:H; leaked credentials compromise external registries, yielding scope change and C:H.

3.1 AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:N/A:N
4.0 AV:L/AC:H/AT:P/PR:L/UI:P/VC:H/VI:N/VA:N/SC:H/SI:H/SA:H
SUSE 7.2 HIGH
AV:L/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:H

vuln.today treats the vendor’s rating as authoritative. A higher third-party CVSS (e.g. CISA-ADP) is shown for transparency but does not drive the headline severity.

CVSS VectorNVD

Attack Vector
Local
Attack Complexity
High
Attack Requirements
Present
Privileges Required
High
User Interaction
Passive
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
High
Subsequent system: Integrity
High
Subsequent system: Availability
High

Lifecycle Timeline

4
Severity Changed
Apr 29, 2026 - 01:11 NVD
HIGH LOW
CVSS changed
Apr 29, 2026 - 01:11 NVD
7.2 (HIGH) 1.2 (LOW)
Patch released
Mar 15, 2026 - 23:54 nvd
Patch available
CVE Published
Jun 26, 2025 - 05:15 nvd
HIGH 7.2

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.0%
Top 92% exploitable
Prevalence
Medium
popular DevSecOps scanning tool, widely used across CI/CD pipelines
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Low

Priority Score

6
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +6
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Vendor StatusVendor

SUSE

Severity: High
Product Status
SUSE Linux Enterprise Server 16.0 Fixed
openSUSE Tumbleweed Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy