# CVE-2026-140448: Improper Path Matching in Snowflake CLI Versions Allows Execution of Stage Files Outside the Requested Directory

> CVE-2026-140448: Improper Path Matching in Snowflake CLI Versions Allows Execution of Stage Files Outside the Requested Directory. CVSS 8.0 (CVSS 3.1).

Canonical: https://rewindex.com/cve/CVE-2026-140448
Last updated: 2026-12-01T06:17:51Z

- Published: 2026-12-01 05:30 UTC · Updated: 2026-12-01 06:17 UTC · Assigner: SNOWFLAKE
- CVSS: 8.0 (CVSS 3.1) · Severity: High · Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H
- EPSS: 0.73%, 56th percentile (scored 2026-12-03)
- CISA KEV: no
- CWE: CWE-187

## Description

Improper path matching in Snowflake CLI & Snowflake CLI labs versions prior to 3.33.0 caused the snow stage execute and snow git execute commands to select files by raw string prefix rather than by directory boundary. When a directory path was given without a trailing slash, files in sibling locations whose names began with the same characters were also selected and executed. An attacker who can write files to a sibling location of a stage directory that a victim executes can cause Snowflake CLI & Snowflake CLI labs to execute attacker-controlled SQL or Python files in the context of the victim's Snowflake session and active role. Successful exploitation requires write access to a stage, or to the cloud storage location backing an external stage, that is shared with a more privileged user or automation, and requires the victim to run snow stage execute or snow git execute against a directory path in that stage. Impact is limited by the privileges held by the configured Snowflake role at execution time. The fix is available in Snowflake CLI & Snowflake CLI labs version 3.33.0, which also addresses several additional security findings. Users must manually upgrade.

## Affected vendors and products

- Snowflake: Snowflake CLI
- Snowflake: Snowflake CLI Labs

## Tracked companies

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

## References

- [CVE record on cve.org](https://www.cve.org/CVERecord?id=CVE-2026-140448)
- [NVD entry](https://nvd.nist.gov/vuln/detail/CVE-2026-140448)
- [https://github.com/snowflakedb/snowflake-cli/releases/tag/v3.33.0](https://github.com/snowflakedb/snowflake-cli/releases/tag/v3.33.0)

---

_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-140448 · Markdown: https://rewindex.com/cve/CVE-2026-140448.md · JSON: https://rewindex.com/api/v1/cves/CVE-2026-140448 · Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) · Generated 2026-12-03T23:29:59.481Z
