{"schemaVersion":4,"id":"CVE-2026-140448","aliases":[],"status":"published","duplicateOf":null,"title":"Improper Path Matching in Snowflake CLI Versions Allows Execution of Stage Files Outside the Requested Directory","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.","dates":{"published":"2026-12-01T05:30:13.998Z","modified":"2026-12-01T05:30:13.998Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00731,"percentile":0.55654,"severity":"low","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":null,"baselineDate":null,"baselineScore":null},"history":[{"date":"2026-12-01T00:00:00.000Z","score":0.00731,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00731,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00731,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00731,"percentile":0.55654}],"last30":[{"date":"2026-12-01T00:00:00.000Z","score":0.00731,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00731,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00731,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00731,"percentile":0.55654}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-187","name":"Partial String Comparison","description":"The product performs a string comparison that only examines a portion of the string before determining whether there is a match.","type":"weakness","status":"Incomplete","abstraction":"Variant","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/187.html"}],"affected":[{"vendor":"snowflake","product":"snowflake cli","name":"Snowflake CLI","label":"snowflake cli","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 3.33.0","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"3.33.0","endInclusive":false}}],"versionsText":"< 3.33.0","eol":null,"hubHref":"/vendor/snowflake/snowflake_cli"},{"vendor":"snowflake","product":"snowflake cli labs","name":"Snowflake CLI Labs","label":"snowflake cli labs","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 3.33.0","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"3.33.0","endInclusive":false}}],"versionsText":"< 3.33.0","eol":null,"hubHref":"/vendor/snowflake/snowflake_cli_labs"}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/snowflakedb/snowflake-cli/releases/tag/v3.33.0","label":"github.com/snowflakedb/snowflake-cli/releases/tag/v3.33.0","hostname":"github.com","tags":[]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-12-01T05:30:13.998Z","label":"Published","detail":"Vulnerability first disclosed.","source":null}],"priority":{"label":"routine","tag":null,"reason":"Not severe (CVSS 8, network access); no exploitation reported by the 5 checked sources","nextStep":"Fix in the normal cadence","rank":[0,0,0,0,1,80],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-04T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.00731,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2026-12-01T05:30:13.998Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":8,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H","version":"3.1","headline":true},{"type":"cvss","source":"nvd","date":"2026-12-01T05:30:13.998Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":8,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H","version":"3.1"}],"epss":{"value":0.00731,"date":"2026-12-04T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T12:01:28.220Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T12:01:28.725Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T12:01:28.919Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T12:01:03.802Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T12:01:26.562Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T12:01:25.560Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T12:33:47.079Z","stale":false,"partial":false}}