CVE-2026-6442 Improper Command Detection Logic Allows RCE in Cortex Code Command-Line Interface
Attackers can execute arbitrary code on local devices via malicious repositories due to improper command validation in the CLI.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2026-6442?
CVE-2026-6442 is a high-severity command injection vulnerability in Snowflake Cortex Code CLI, published on 16 Apr 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official 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.
Weakness: CWE-1286
Which versions are affected by CVE-2026-6442?
How do I fix CVE-2026-6442?
No fix has been published for CVE-2026-6442 yet. Limit exposure of the affected software until one is available.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2026-6442 being exploited?
There is no known exploitation of CVE-2026-6442 in the wild and no public exploit code.
Sources
Also known as GHSA-26fh-vcwc-mcgv.