CVE-2026-6442

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

Published Apr 16, 2026 CVSS 3.1 · 8.3 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The vulnerability arises from improper validation of bash commands in the Snowflake Cortex Code Command‑Line Interface, allowing subsequent commands to be executed outside the intended sandbox. This flaw, identified as CWE‑1286, enables an attacker to embed specially crafted commands in untrusted content such as a malicious repository, leading to arbitrary code execution on the local device without user consent. The impact is a compromise of confidentiality, integrity, and availability of the affected system.

Affected Systems

Snowflake Cortex Code CLI versions prior to 1.0.25 are affected; any installation that processes untrusted repositories or content can be impacted. No specific operating system is singled out, so all platforms supported by the CLI are potentially vulnerable.

Risk and Exploitability

The CVSS score of 8.3 signals high severity. EPSS data is unavailable and the vulnerability is not listed in the CISA KEV catalog, suggesting no confirmed active exploitation. The likely attack vector, inferred from the description, involves submitting malicious content through a repository that the CLI consumes; the exploitation is non‑deterministic and model‑dependent. While the risk window may be limited, the potential damage remains significant and requires prompt remediation.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Snowflake Cortex Code CLI to version 1.0.25 or later to apply the automatic fix
  • If an upgrade cannot be performed immediately, isolate the CLI environment and restrict it to trusted repositories only, enforcing strict content scanning
  • Monitor system logs for unexpected command execution and audit activity for signs of exploitation attempts

Generated by OpenCVE AI on April 17, 2026 at 02:28 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Snowflake
Snowflake cortex Code Cli
Vendors & Products Snowflake
Snowflake cortex Code Cli
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title Improper Command Detection Logic Allows RCE in Cortex Code Command-Line Interface
Weaknesses CWE-1286
References
Metrics cvssV3_1

{'score': 8.3, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H'}

Weaknesses
  • CWE-1286

    Improper Validation of Syntactic Correctness of Input

Sources

Status
PUBLISHED
Assigner
SNOWFLAKE
Published
Updated
Apr 16, 2026, 6:54 PM
Reserved
Apr 16, 2026, 6:21 PM
Status
Awaiting Analysis
Published
Apr 16, 2026, 7:16 PM
Modified
Oct 25, 2026, 11:10 PM