CVE-2025-24788: Snowflake.Data Snowflake.Data Has Weak Temporary Files Vulnerability

MODERATE
Advisory Identifier: GHSA-2mqw-rq5m-8hc8
CVSS 5.0
CWE-276
Published
Advisory Summary

CVE-2025-24788 is a MODERATE (CVSS 5.0) snowflake.data has weak temporary files vulnerability (CWE-276: Incorrect Default Permissions) affecting Snowflake.Data libraries in the NuGet ecosystem. The issue involves snowflake.data has weak temporary files permissions. Remediation is available by upgrading affected packages to version 4.3.0.

CVE-2025-24788 at a Glance

CVE Identifier CVE-2025-24788
GHSA Identifier GHSA-2mqw-rq5m-8hc8
Severity MODERATE
CVSS v3.1 Base Score 5.0
CWE Classification CWE-276: Incorrect Default Permissions
Affected Product Snowflake.Data
Package Ecosystem NuGet
Published Date
Last Updated

Security Impact

CVSS: 5.0

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N).

Attack Vector Local (AV:L)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2025-24788

To remediate this vulnerability, upgrade all affected Snowflake.Data dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

Snowflake.Data fixed: 4.3.0
Upgrade Snowflake.Data to 4.3.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for Snowflake.Data

How to Check if You Are Affected

To determine whether your application is affected by CVE-2025-24788, inspect your project dependencies for Snowflake.Data:

inspect dependencies for Snowflake.Data

Analyze the terminal output to locate any version of Snowflake.Data in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.3.0), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-276: Incorrect Default Permissions, where during installation, installed file permissions are set to allow anyone to modify those files. In Snowflake.Data, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### 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](https://hackerone.com/snowflake?type=team).

CVE-2025-24788 Affected Snowflake.Data Versions

1 component(s)
Fixed Versions:
4.3.0
Product / Package Ecosystem Affected Versions Fixed Version
Snowflake.Data
NuGet
≥ 2.0.12
< 4.3.0
4.3.0

References

Frequently Asked Questions

What is CVE-2025-24788?
CVE-2025-24788 is a security vulnerability in Snowflake.Data involving Snowflake.Data has weak temporary files permissions under CWE-276: Incorrect Default Permissions.
Which Snowflake.Data versions are affected?
Affected versions include releases prior to 4.3.0 across affected packages: Snowflake.Data.
What version fixes CVE-2025-24788?
Upgrading to 4.3.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is Snowflake.Data affected?
Yes, Snowflake.Data is affected in releases prior to 4.3.0. Upgrade your dependency to 4.3.0 or later.
What is the CVSS score of CVE-2025-24788?
CVE-2025-24788 has a CVSS v3.1 base score of 5.0 (MODERATE) with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2025-24788?
CVE-2025-24788 is classified under CWE-276: Incorrect Default Permissions (During installation, installed file permissions are set to allow anyone to modify those files.).
How can I check NuGet dependencies for CVE-2025-24788?
Run the dependency tree command: 'inspect dependencies for Snowflake.Data'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-2mqw-rq5m-8hc8",
  "modified" : "2025-01-29T22:00:22Z",
  "published" : "2025-01-29T20:50:55Z",
  "aliases" : [ "CVE-2025-24788" ],
  "summary" : "Snowflake.Data has weak temporary files permissions",
  "details" : "### Issue\nSnowflake 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.\n\nThis vulnerability affects versions 2.0.12 through 4.2.0 on Linux and macOS. Snowflake fixed the issue in version 4.3.0.\n\n### Vulnerability Details\nWhen 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.\n\n### Solution\nSnowflake released version 4.3.0 of the Snowflake Connector for .NET, which fixes this issue. We recommend users upgrade to version 4.3.0.\n\n### Additional Information\nIf 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](https://hackerone.com/snowflake?type=team).",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "Snowflake.Data"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.0.12"
      }, {
        "fixed" : "4.3.0"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 4.2.0"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/snowflakedb/snowflake-connector-net/security/advisories/GHSA-2mqw-rq5m-8hc8"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-24788"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/snowflakedb/snowflake-connector-net/commit/89d91e8316ca213c5d184bcf469ed93977a5edf9"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/snowflakedb/snowflake-connector-net"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-276" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-01-29T20:50:55Z",
    "nvd_published_at" : "2025-01-29T21:15:21Z"
  }
}