Skip to content

CVE-2025-46327 Go Snowflake Driver has race condition when checking access to Easy Logging configuration file

HighCVSS 7.0 EPSS 0.14%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial

Description

gosnowflake is the Snowflake Golang driver. Versions starting from 1.7.0 to before 1.13.3, are vulnerable to a Time-of-Check to Time-of-Use (TOCTOU) race condition. 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 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. This issue has been patched in version 1.13.3.

Upgrade path

6 packages: 2 fixed, 1 partially fixed, 2 with no fix yet.

PackageAffectedFixed inStatus
cbl-mariner telegraf(CBL-Mariner 2.0) All versions No fix listed No fix yet
Microsoft cbl2 telegraf 1.29.4-22 All versions No fix listed No fix yet
azure linux telegraf(Azure Linux 3.0) < 1.31.0-24; < 1.31.0-27; All versions 1.31.0-24, 1.31.0-27 Partially fixed
Snowflake gosnowflake >= 1.7.0, < 1.13.3 1.13.3 Fixed
snowflakedb github.com/snowflakedb/gosnowflake(Go) >= 1.7.0, < 1.13.3 1.13.3 Fixed
snowflakedb github.com/snowflakedb/gosnowflake = >= 1.7.0, < 1.13.3 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
snowflakedb github.com/snowflakedb/gosnowflake(Go) >= 1.7.0, < 1.13.3 1.13.3
cbl-mariner telegraf(CBL-Mariner:2.0) All versions No fix listed
azure linux telegraf(Azure Linux:3.0) All versions No fix listed
azure linux telegraf(Azure Linux:3.0) < 1.31.0-24 1.31.0-24
azure linux telegraf(Azure Linux:3.0) < 1.31.0-27 1.31.0-27
Microsoft cbl2 telegraf 1.29.4-22 All versions No fix listed
snowflakedb github.com/snowflakedb/gosnowflake = >= 1.7.0, < 1.13.3 No fix listed
Snowflake gosnowflake >= 1.7.0, < 1.13.3 1.13.3

References