cvelo
P2 · HighCVSS 8.0EPSS 0.7%

Improper Path Matching in Snowflake CLI Versions Allows Execution of Stage Files Outside the Requested Directory

  • CVE-2026-140448
  • GHSA-9xfp-4f65-jv9q
  • EUVD-2026-139913

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.

Text from the CVE.org record.

Recommendation

  • Snowflake Snowflake CLI

    • If you run a version before 3.33.0update to 3.33.0 or later
  • Snowflake Snowflake CLI Labs

    • If you run a version before 3.33.0update to 3.33.0 or later

Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.

Affected

  • Snowflake Snowflake CLI

    Affected versionsFixed in
    before 3.33.03.33.0
  • Snowflake Snowflake CLI Labs

    Affected versionsFixed in
    before 3.33.03.33.0

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.