{"id":"CVE-2026-140448","summary":"Improper Path Matching in Snowflake CLI Versions Allows Execution of Stage Files Outside the Requested Directory","details":"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.","modified":"2026-12-01T07:00:25.310708600Z","published":"2026-12-01T05:30:13.998Z","database_specific":{"cna_assigner":"SNOWFLAKE","cwe_ids":["CWE-187"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/140xxx/CVE-2026-140448.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/140xxx/CVE-2026-140448.json"},{"type":"PACKAGE","url":"https://github.com/snowflakedb/snowflake-cli"},{"type":"WEB","url":"https://github.com/snowflakedb/snowflake-cli/releases/tag/v3.33.0"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-140448"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/snowflakedb/snowflake-cli","events":[{"introduced":"0"},{"fixed":"6fbb10f74a40767c957686543f9c8a1c988bcb84"}],"database_specific":{"extracted_events":[{"source":"AFFECTED_FIELD","strategy":"StandardRange","range":[{"introduced":"0"},{"fixed":"3.33.0"}]},{"source":"REFERENCES_TAG","original_tag":"v3.33.0","range":[{"fixed":"6fbb10f74a40767c957686543f9c8a1c988bcb84"}]}]}}],"versions":["v3.0.0-rc2","dcm-prpr-20250804","v2.7.0-rc0","v2.3.0-rc0","v2.2.0-rc0","v2.1.0-rc0","v2.0.0","v2.0.0rc3","v2.0.0rc2","v2.0.0rc1","na-preview","v2.0.0rc0","v2.0.0-alpha.3","v2.0.0-alpha.2","v2.0.0-alpha.1","v1.1.0-rc1","v1.1.0","v1.0.1-rc2","v1.0.1","v1.0.1-rc1","v1.0.0","v0.2.9","v0.2.8","v0.2.7","v0.2.5","v0.2.4","v0.2.3","v0.2.2","v0.2.1","v0.2.0","v0.1.24","v0.1.23","v0.1.22","v0.1.21","v0.1.20","v0.1.19","v0.1.18","v0.1.17","v0.1.15","v0.1.16","v0.1.14","v0.1.13","v0.1.12","v0.1.11","v0.1.10","v0.1.9","v0.1.8","v0.1.7","v0.1.6","v0.1.5","v0.1.4","v0.1.3","v0.1.2-a","v0.1.2","v0.1.1","v0.1.0","0.0.1-a"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-140448.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H"}]}