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

Published Dec 1, 2026
·
Updated

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 Software

2 affected components
Snowflake Snowflake CLI<3.33.0
Snowflake Snowflake CLI Labs<3.33.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Snowflake CLI & Snowflake CLI labs to a version that resolves this vulnerability.

    Fixed in 3.33.0

Event History

Dec 1, 2026
CVE Published
via MITRE·05:30 AM
Data Sourced
via MITRE·05:30 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who is realistically exposed to this issue?

Organizations are exposed where a lower-privileged user or process can write to a stage, or the backing cloud storage for an external stage, that is also used by a more privileged user or automation. Exploitation also depends on that victim executing a directory path in the shared stage with snow stage execute or snow git execute.

2

What does an attacker need to do to exploit it?

The attacker needs write access to a sibling location whose name shares the requested directory's raw string prefix. They must place SQL or Python files there and rely on a victim invoking the affected command with the directory path specified without a trailing slash.

3

What is the impact if exploitation succeeds?

Attacker-controlled SQL or Python executes in the victim's Snowflake session using the active Snowflake role. The resulting impact is limited by the privileges assigned to that role.

4

What can be done if an immediate upgrade is not possible?

Avoid running snow stage execute or snow git execute against directory paths without a trailing slash. Restrict write access to shared stages and to cloud storage backing external stages, especially where privileged users or automation execute files.

5

How can I determine whether my environment is affected?

Snowflake CLI and Snowflake CLI Labs versions earlier than 3.33.0 are affected. Review whether users or automation execute stage directories and whether writable sibling locations with matching path prefixes are shared with more privileged execution contexts.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203