cve.bz

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

8.0 high

High (8.0) in snowflake.

On this page
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.

Severity

CVSS 3.1

8.0 high
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H
CWE
CWE-187 Partial String Comparison
Published
Assigned by
SNOWFLAKE (CNA)
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Ask an AI about this CVE

Show the promptExplain CVE-2026-140448 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-140448?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-140448?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-140448 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Snowflake CLIbefore 3.33.0
Snowflake CLI Labsbefore 3.33.0

References

Check your stackJSON