CVE-2025-46327: Github.com/snowflakedb/gosnowflake Go Snowflake Driver Has Race Vulnerability

LOW
Advisory Identifier: GHSA-6jgm-j7h2-2fqg
CVSS 3.3
CWE-367
Published
Advisory Summary

CVE-2025-46327 is a LOW (CVSS 3.3) go snowflake driver has race vulnerability (CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition) affecting Github.com/snowflakedb/gosnowflake libraries in the Go ecosystem. The issue involves go snowflake driver has race condition when checking access to easy logging configuration file. Remediation is available by upgrading affected packages to version 1.13.3.

CVE-2025-46327 at a Glance

CVE Identifier CVE-2025-46327
GHSA Identifier GHSA-6jgm-j7h2-2fqg
Severity LOW
CVSS v3.1 Base Score 3.3
CWE Classification CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition
Affected Product Github.com/snowflakedb/gosnowflake
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 3.3

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:N/S:U/C:L/I:N/A:N).

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

How to Fix CVE-2025-46327

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

github.com/snowflakedb/gosnowflake fixed: 1.13.3
Upgrade github.com/snowflakedb/gosnowflake to 1.13.3
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 github.com/snowflakedb/gosnowflake

How to Check if You Are Affected

To determine whether your application is affected by CVE-2025-46327, inspect your project dependencies for Github.com/snowflakedb/gosnowflake:

inspect dependencies for github.com/snowflakedb/gosnowflake

Analyze the terminal output to locate any version of Github.com/snowflakedb/gosnowflake in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.13.3), 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-367: Time-of-check Time-of-use (TOCTOU) Race Condition, where the product checks the state of a resource before using that resource, but the resource's state can change between the check and the use in a way that invalidates the results of the check. In Github.com/snowflakedb/gosnowflake, 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 Go Snowflake Driver (“Driver”). When using the Easy Logging feature on Linux and macOS, the Driver didn’t correctly verify the permissions of the logging configuration file, potentially allowing an attacker with local access to overwrite the configuration and gain control over logging level and output location. This vulnerability affects Driver versions from 1.7.0 up to, but not including, 1.13.3. Snowflake fixed the issue in version 1.13.3. # Vulnerability Details When using the Easy Logging feature on Linux and macOS, the Driver reads logging configuration from a user-provided file. On Linux and macOS the Driver verifies that the configuration file can be written to only by its owner. That check was vulnerable to a Time-of-Check to Time-of-Use (TOCTOU) race condition and failed to verify that the file owner matches the user running the Driver. This could allow a local attacker with write access to the configuration file or the directory containing it to overwrite the configuration and gain control over logging level and output location. # Solution Snowflake released version 1.13.3 of the Go Snowflake Driver, which fixes this issue. We recommend users upgrade to version 1.13.3. # Additional Information If you discover a security vulnerability in one of our products or websites, please report the issue to Snowflake through our Vulnerability Disclosure Program hosted at HackerOne. For more information, please see our [Vulnerability Disclosure Policy](https://hackerone.com/snowflake?type=team).

CVE-2025-46327 Affected Github.com/snowflakedb/gosnowflake Versions

1 component(s)
Fixed Versions:
1.13.3
Product / Package Ecosystem Affected Versions Fixed Version
github.com/snowflakedb/gosnowflake
Go
≥ 1.7.0
< 1.13.3
1.13.3

References

Frequently Asked Questions

What is CVE-2025-46327?
CVE-2025-46327 is a security vulnerability in Github.com/snowflakedb/gosnowflake involving Go Snowflake Driver has race condition when checking access to Easy Logging configuration file under CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition.
Which Github.com/snowflakedb/gosnowflake versions are affected?
Affected versions include releases prior to 1.13.3 across affected packages: github.com/snowflakedb/gosnowflake.
What version fixes CVE-2025-46327?
Upgrading to 1.13.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/snowflakedb/gosnowflake affected?
Yes, github.com/snowflakedb/gosnowflake is affected in releases prior to 1.13.3. Upgrade your dependency to 1.13.3 or later.
What is the CVSS score of CVE-2025-46327?
CVE-2025-46327 has a CVSS v3.1 base score of 3.3 (LOW) with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N.
What CWE is associated with CVE-2025-46327?
CVE-2025-46327 is classified under CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition (The product checks the state of a resource before using that resource, but the resource's state can change between the check and the use in a way that invalidates the results of the check.).
How can I check Go dependencies for CVE-2025-46327?
Run the dependency tree command: 'inspect dependencies for github.com/snowflakedb/gosnowflake'. 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-6jgm-j7h2-2fqg",
  "modified" : "2025-05-05T21:58:29Z",
  "published" : "2025-04-28T20:27:29Z",
  "aliases" : [ "CVE-2025-46327" ],
  "summary" : "Go Snowflake Driver has race condition when checking access to Easy Logging configuration file",
  "details" : "# Issue\nSnowflake discovered and remediated a vulnerability in the Go Snowflake Driver (“Driver”). When using the Easy Logging feature on Linux and macOS, the Driver didn’t correctly verify the permissions of the logging configuration file, potentially allowing an attacker with local access to overwrite the configuration and gain control over logging level and output location.\n\nThis vulnerability affects Driver versions from 1.7.0 up to, but not including, 1.13.3. Snowflake fixed the issue in version 1.13.3.\n\n# Vulnerability Details\nWhen using the Easy Logging feature on Linux and macOS, the Driver reads logging configuration from a user-provided file. On Linux and macOS the Driver verifies that the configuration file can be written to only by its owner. That check was vulnerable to a Time-of-Check to Time-of-Use (TOCTOU) race condition and failed to verify that the file owner matches the user running the Driver. This could allow a local attacker with write access to the configuration file or the directory containing it to overwrite the configuration and gain control over logging level and output location.\n\n# Solution\nSnowflake released version 1.13.3 of the Go Snowflake Driver, which fixes this issue. We recommend users upgrade to version 1.13.3.\n\n# Additional Information\nIf you discover a security vulnerability in one of our products or websites, please report the issue to Snowflake through our Vulnerability Disclosure Program hosted at 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:N/S:U/C:L/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/snowflakedb/gosnowflake"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.7.0"
      }, {
        "fixed" : "1.13.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/snowflakedb/gosnowflake/security/advisories/GHSA-6jgm-j7h2-2fqg"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-46327"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/snowflakedb/gosnowflake/commit/ba94a4800e23621eff558ef18ce4b96ec5489ff0"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/snowflakedb/gosnowflake"
  }, {
    "type" : "WEB",
    "url" : "https://pkg.go.dev/vuln/GO-2025-3650"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-367" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-04-28T20:27:29Z",
    "nvd_published_at" : "2025-04-28T23:15:44Z"
  }
}