# CVE-2026-6442: Improper Command Detection Logic Allows RCE in Cortex Code Command-Line Interface

> CVE-2026-6442: Improper Command Detection Logic Allows RCE in Cortex Code Command-Line Interface. CVSS 8.3 (CVSS 3.1).

Canonical: https://rewindex.com/cve/CVE-2026-6442
Last updated: 2026-06-17T11:00:49Z

- Published: 2026-04-16 18:43 UTC · Updated: 2026-06-17 11:00 UTC · Assigner: SNOWFLAKE
- CVSS: 8.3 (CVSS 3.1) · Severity: High · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H
- EPSS: 0.36%, 29th percentile (scored 2026-10-25)
- CISA KEV: no
- CWE: CWE-1286

## 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.

## Affected vendors and products

- Snowflake: Cortex Code CLI

## Tracked companies

- [Snowflake](https://rewindex.com/company/snowflake.md)

## References

- [CVE record on cve.org](https://www.cve.org/CVERecord?id=CVE-2026-6442)
- [NVD entry](https://nvd.nist.gov/vuln/detail/CVE-2026-6442)
- [https://community.snowflake.com/s/article/PromptArmor-Report---Snowflake-Response](https://community.snowflake.com/s/article/PromptArmor-Report---Snowflake-Response)
- [https://www.promptarmor.com/](https://www.promptarmor.com/)

---

_Sources: CVE records from the CVE Program (cve.org). CVE® is a registered trademark of The MITRE Corporation. (https://www.cve.org/) This product uses data from the NVD API but is not endorsed or certified by the NVD. (https://nvd.nist.gov/) Known Exploited Vulnerabilities catalog from CISA. (https://www.cisa.gov/known-exploited-vulnerabilities-catalog) EPSS scores from FIRST (Exploit Prediction Scoring System). (https://www.first.org/epss/)_


---
Canonical: https://rewindex.com/cve/CVE-2026-6442 · Markdown: https://rewindex.com/cve/CVE-2026-6442.md · JSON: https://rewindex.com/api/v1/cves/CVE-2026-6442 · Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) · Generated 2026-10-26T03:10:24.168Z
