CVE-2026-6442

Improper Command Detection Logic Allows RCE in Cortex Code Command-Line Interface

State
Published
Severity
8.3 High
Published
Apr 16, 2026
Updated
Apr 16, 2026
Reserved
Apr 16, 2026

Read the record on cve.org

Description

Improper validation of bash commands in Snowflake Cortex Code CLI versions prior to 1.0.25 allowed subsequent commands to execute outside the sandbox. An attacker could exploit this by embedding specially crafted commands in untrusted content, such as a malicious repository, causing the CLI agent to execute arbitrary code on the local device without user consent. Exploitation is non-deterministic and model-dependent. The fix is automatically applied upon relaunch with no user action required.

Scores

CVSSScoreVectorSource
3.18.3 HighCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:HSNOWFLAKE

Weaknesses

  • CWE-1286 Improper Validation of Syntactic Correctness of Input

Affected Products

ProductVersions
Cortex Code CLISnowflake
  • <1.0.25Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.