Snowflake CLIに、ステージ外のファイルが実行される脆弱性
Summary
Snowflake CLIとSnowflake CLI Labsの3.33.0より前のバージョンでは、ディレクトリのパス指定が文字列の前方一致で判定されるため、同じ文字で始まる隣のディレクトリのSQLやPythonファイルも実行されるおそれがあります。修正版はバージョン3.33.0です。自動更新はされないため、手動でアップグレードしてください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
Snowflake CLIとSnowflake CLI Labsの3.33.0より前のバージョンでは、ディレクトリのパス指定が文字列の前方一致で判定されるため、同じ文字で始まる隣のディレクトリのSQLやPythonファイルも実行されるおそれがあります。修正版はバージョン3.33.0です。自動更新はされないため、手動でアップグレードしてください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| SnowflakeSnowflake CLI |
< 3.33.0→ 3.33.0 |
3.33.0 |
| SnowflakeSnowflake CLI Labs |
< 3.33.0→ 3.33.0 |
3.33.0 |
Original description The description as published by the source.
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.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- web github.com
- web github.com