CVE-2025-46327: Github.com/snowflakedb/gosnowflake Go Snowflake Driver Has Race Vulnerability
LOWCVE-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
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).
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.
Upgrade github.com/snowflakedb/gosnowflake to 1.13.3
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
CVE-2025-46327 Affected Github.com/snowflakedb/gosnowflake Versions
1 component(s)| 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?
Which Github.com/snowflakedb/gosnowflake versions are affected?
What version fixes CVE-2025-46327?
Is github.com/snowflakedb/gosnowflake affected?
What is the CVSS score of CVE-2025-46327?
What CWE is associated with CVE-2025-46327?
How can I check Go dependencies for CVE-2025-46327?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}