CVE-2025-46327
Low · 3.3Go Snowflake Driver has race condition when checking access to Easy Logging configuration file
CVSS
3.3
EPSS
0.1%
Published
Apr 28, 2025
CISA due date
—
Cloudanix analysis
A bug in database connection software could let someone on the same computer secretly change where logs are written, making it easier for them to hide what they are doing.
- Exploitation
- Local Privilege
- Attacker needs
- Local User
- Complexity
- High
- Impact
- Data Tampering
- Component
- Library
- Class
- Race Condition
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
TOCTOU race condition in Easy Logging permission checks on Linux/macOS allows a local attacker with write access to the config file or directory to overwrite it because ownership verification is absent and the check is not atomic.
Why it matters to the business
Local attackers can redirect or suppress application logs, enabling concealment of malicious activity and complicating incident response or compliance audits.
How an attack unfolds
A local attacker prepares a malicious logging configuration, times a file swap between the driver's permission check and file use via the race condition, and thereby controls log verbosity and destination.
How to fix it
Upgrade the Go Snowflake Driver to version 1.13.3 or later; if immediate upgrade is not possible, disable the Easy Logging feature.
How to confirm the fix worked
Confirm the installed driver version is at least 1.13.3 and review source or release notes for the corrected permission and ownership checks on the logging configuration file.
Typical attack path
- Locate the user-provided logging configuration file or its parent directory
- Obtain write access to the file or directory
- Prepare malicious configuration content
- Exploit the TOCTOU window to replace the file
- Trigger the Easy Logging feature to load the altered configuration
How to detect it
Review system and application logs for unexpected log file paths or verbosity changes; inspect file creation or modification timestamps on logging configuration files around driver initialization times.
What your security team should do
- Upgrade the Go Snowflake Driver to 1.13.3 immediately
- Disable Easy Logging on Linux and macOS unless required
- Restrict local write access to logging configuration directories
- Monitor file integrity of configuration paths used by the driver
The record
# 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).
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Go | github.com/snowflakedb/gosnowflake | 1.7.0 | 1.13.3 |
| Chainguard | grafana-alloy | 0 | 1.8.2-r1 |
| Chainguard | grafana-alloy-compat | 0 | 1.8.2-r1 |
| Chainguard | grafana-alloy-fips | 0 | 1.7.5-r4 |
| Chainguard | opentelemetry-collector-contrib | 0 | 0.125.0-r1 |
| Chainguard | opentelemetry-collector-contrib-compat | 0 | 0.125.0-r1 |
| Chainguard | opentelemetry-collector-contrib-fips | 0 | 0.125.0-r2 |
| Chainguard | splunk-otel-collector | 0 | 0.124.0-r1 |
| Chainguard | splunk-otel-collector-compat | 0 | 0.124.0-r1 |
| Chainguard | splunk-otel-collector-doc | 0 | 0.124.0-r1 |
| Chainguard | splunk-otel-collector-fips | 0 | 0.124.0-r1 |
| Chainguard | splunk-otel-collector-migratecheckpoint | 0 | 0.124.0-r1 |
| Chainguard | splunk-otel-collector-migratecheckpoint-compat | 0 | 0.124.0-r1 |
| Chainguard | sql_exporter | 0 | 0.17.1-r8 |
| Chainguard | sql_exporter-compat | 0 | 0.17.1-r8 |
| Chainguard | sql_exporter-fips | 0 | 0.17.1-r6 |
| Chainguard | telegraf-1.33 | 0 | 1.33.3-r10 |
| Chainguard | telegraf-1.34 | 0 | 1.34.2-r2 |
| Chainguard | vault-1.16 | 0 | 1.16.3-r19 |
| Chainguard | vault-1.16-compat | 0 | 1.16.3-r19 |
| Chainguard | vault-1.17 | 0 | 1.17.6-r13 |
| Chainguard | vault-1.17-compat | 0 | 1.17.6-r13 |
| Chainguard | vault-1.18 | 0 | 1.18.5-r9 |
| Chainguard | vault-1.18-compat | 0 | 1.18.5-r9 |
| Chainguard | vault-1.19 | 0 | 1.19.2-r1 |
| Chainguard | vault-1.19-compat | 0 | 1.19.2-r1 |
| Chainguard | vault-fips-1.18 | 0 | 1.18.5-r9 |
| Chainguard | vault-fips-1.18-compat | 0 | 1.18.5-r9 |
| Chainguard | vault-fips-1.19 | 0 | 1.19.3-r1 |
| Chainguard | vault-fips-1.19-compat | 0 | 1.19.3-r1 |
| Wolfi | grafana-alloy | 0 | 1.8.2-r1 |
| Wolfi | grafana-alloy-compat | 0 | 1.8.2-r1 |
| Wolfi | opentelemetry-collector-contrib | 0 | 0.125.0-r1 |
| Wolfi | opentelemetry-collector-contrib-compat | 0 | 0.125.0-r1 |
| Wolfi | splunk-otel-collector | 0 | 0.124.0-r1 |
| Wolfi | splunk-otel-collector-compat | 0 | 0.124.0-r1 |
| Wolfi | splunk-otel-collector-doc | 0 | 0.124.0-r1 |
| Wolfi | splunk-otel-collector-migratecheckpoint | 0 | 0.124.0-r1 |
| Wolfi | splunk-otel-collector-migratecheckpoint-compat | 0 | 0.124.0-r1 |
| Wolfi | sql_exporter | 0 | 0.17.1-r8 |
| Wolfi | sql_exporter-compat | 0 | 0.17.1-r8 |
| Wolfi | telegraf-1.33 | 0 | 1.33.3-r10 |
| Wolfi | telegraf-1.34 | 0 | 1.34.2-r2 |
| go | github.com/snowflakedb/gosnowflake | 1.7.0 | 1.13.3 |
| openSUSE:Tumbleweed | alloy | 0 | 1.9.1-1.1 |
| openSUSE:Tumbleweed | govulncheck-vulndb | 0 | 0.0.20250506T153719-1.1 |
Related vulnerabilities
- CVE-2026-34165 go-git is an extensible git implementation library written in pure Go. Also affects grafana-alloy
- CVE-2026-33762 go-git is an extensible git implementation library written in pure Go. Also affects grafana-alloy
- CVE-2026-32285 The Delete function fails to properly validate offsets when processing malformed JSON… Also affects grafana-alloy
- CVE-2026-32287 Boolean XPath expressions that evaluate to true can cause an infinite loop in… Also affects grafana-alloy
- CVE-2026-4427 Rejected reason: Duplicate of CVE-2026-32286 Also affects grafana-alloy
- CVE-2026-27141 Due to missing nil check, sending 0x0a-0x0f HTTP/2 frames will cause a running server to… Also affects grafana-alloy
- CVE-2026-26958 filippo.io/edwards25519 is a Go library implementing the edwards25519 elliptic curve with… Also affects grafana-alloy
- CVE-2026-25934 go-git is a highly extensible git implementation library written in pure Go. Also affects grafana-alloy