Snowflake CLI executes stage files from sibling directories
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- Required
- Attack complexity
- High
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA.
Summary
Snowflake CLI and Snowflake CLI Labs before 3.33.0 select stage files by raw string prefix instead of directory boundary (CWE-187). When a directory path lacks a trailing slash, files in sibling locations with the same leading characters are also executed. An attacker with write access to a sibling location of a stage directory can make the CLI run attacker-controlled SQL or Python in the victim's Snowflake session and role when the victim runs snow stage execute or snow git execute on that path.
Written with Claude Haiku 5.5 from the sources below · 2026-12-01
Description from the CNA
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
Remediation
Upgrade Snowflake CLI and Snowflake CLI Labs to version 3.33.0, which fixes this issue. Users must upgrade manually.
Written with Claude Haiku 5.5 from the sources below · 2026-12-01
- Fix · CNA Snowflake CLI (Snowflake) Fixed in 3.33.0
- Fix · CNA Snowflake CLI Labs (Snowflake) Fixed in 3.33.0
Timeline
- 2026-12-01 Threatist record created from CVE-2026-140448
- 2026-12-01 Alias added: GHSA-9xfp-4f65-jv9q
References
Other 1
More Snowflake vulnerabilities
- TI-2022-20945 Exponential ReDoS in snowflake-connector-python leads to denial of service CVSS 3.1HIGH 7.5
- TI-2026-02844 snowflakedb snowflake-jdbc JDBC URL SdkProxyRoutePlanner.java SdkProxyRoutePlanner redos CVSS 4.0MEDIUM 4.8
- TI-2026-13340 Improper TLS Hostname Verification in Snowflake Connector for Python CVSS 4.0CRITICAL 9.2
- TI-2023-17069 Snowflake Python Connector vulnerable to Command Injection CVSS 3.1HIGH 8.8
- TI-2023-17068 Snowflake NodeJS Driver vulnerable to Command Injection CVSS 3.1HIGH 8.8
- TI-2023-17067 Snowflake Golang Driver vulnerable to Command Injection CVSS 3.1HIGH 8.8
Sources
- CVE-2026-140448 · CVE Program
- CVE-2026-140448 · NVD
- GHSA-9xfp-4f65-jv9q · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences