Snowflake.Data has weak temporary files permissions
Published 29 Jan 2025 · Updated 29 Jan 2025
Is your project on an affected Snowflake.Data?
Look after several .NET apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
- Affected
- >=2.0.12 <4.3.0
- Fixed in
- 4.3.0
dotnet add package Snowflake.Data --version 4.3.0Details
Issue
Snowflake discovered and remediated a vulnerability in the Snowflake Connector for .NET in which files downloaded from stages are temporarily placed in a world-readable local directory, making them accessible to unauthorized users on the same machine.
This vulnerability affects versions 2.0.12 through 4.2.0 on Linux and macOS. Snowflake fixed the issue in version 4.3.0.
Vulnerability Details
When downloading files from stages, the Snowflake Connector for .NET uses the OS temporary directory to save files before copying them to the destination directory. The files in the temporary directory, which are removed once the write to the destination directory concludes, have world-readable permissions on Linux and macOS. This could allow any user on the local machine to access them during their limited lifetime.
Solution
Snowflake released version 4.3.0 of the Snowflake Connector for .NET, which fixes this issue. We recommend users upgrade to version 4.3.0.
Additional Information
If you discover a security vulnerability in one of our products or websites, please report the issue to HackerOne. For more information, please see our Vulnerability Disclosure Policy.
Is GHSA-2mqw-rq5m-8hc8 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected Snowflake.Data, and gives you the command that fixes it.
More advisories for Snowflake.Data
- LowCVE-2025-46326Snowflake Connector for .NET has race condition when checking access to Easy Logging configuration file · 28 Apr 2025
- MediumCVE-2023-51662Snowflake Connector .NET does not properly check the Certificate Revocation List (CRL) · 22 Dec 2023
- HighCVE-2023-34230Snowflake Connector .Net Command Injection · 9 Jun 2023
References
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.