CVE-2025-46327 Go Snowflake Driver has race condition when checking access to Easy Logging configuration file
- 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.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| 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
| Product | Affected versions | Fixed 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
- https://github.com/snowflakedb/gosnowflake/security/advisories/GHSA-6jgm-j7h2-2fqg vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/snowflakedb/gosnowflake/commit/ba94a4800e23621eff558ef18ce4b96ec5489ff0 patch
- github.com product
- pkg.go.dev
- MSRC Security Update Guide vendor-advisory
- CBL-Mariner Releases vendor-advisory
- github.com