# CVE-2025-46328: NodeJS Driver for Snowflake has race condition when checking access to Easy Logging configuration file

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** LOW 3.3
- **CVSS:** 3.3 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: Low; Integrity impact: None; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.18% (percentile 5, 2026-11-26)
- **CWE:** CWE-367
- **Aliases:** GHSA-wmjq-jrm2-9wfr
- **Published:** 2025-04-28T20:31:03.000Z
- **Modified:** 2026-06-17T09:26:14.630Z

## Who should check

- Projects that depend on npm package snowflake-sdk (\>= 1.10.0, \< 2.0.4)
- Anyone running snowflakedb snowflake-connector-nodejs \>= 1.10.0, \< 2.0.4

## Description

snowflake-connector-nodejs is a NodeJS driver for Snowflake. Versions starting from 1.10.0 to before 2.0.4, 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 2.0.4.

## Affected and fixed versions

- npm `snowflake-sdk`: affected \>= 1.10.0, \< 2.0.4; fixed 2.0.4 (osv)
- snowflakedb snowflake-connector-nodejs: \>= 1.10.0, \< 2.0.4 (cvelist)

## Mitigation

- Upgrade snowflake-sdk to 2.0.4 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-46328. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-46328.md
Affected: snowflake-sdk >= 1.10.0, < 2.0.4
Fixed in: 2.0.4

Steps:
1. Search this machine and project for snowflake-sdk (npm), snowflakedb snowflake-connector-nodejs: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-46328 being exploited?

There is no confirmed exploitation: CVE-2025-46328 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.18% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-46328?

Low: CVSS 3.3 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-46328?

snowflake-sdk \>= 1.10.0, \< 2.0.4.

### Is there a fix for CVE-2025-46328?

Yes. Fixed in 2.0.4. Upgrade snowflake-sdk to 2.0.4 or later.

### How do I check if I'm affected by CVE-2025-46328?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/snowflakedb/snowflake-connector-nodejs/security/advisories/GHSA-wmjq-jrm2-9wfr>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2025-46328>
- patch: <https://github.com/snowflakedb/snowflake-connector-nodejs/commit/e94c24112271e1f44c271634bf29a3188acc68d0>
- other: <https://github.com/snowflakedb/snowflake-connector-nodejs>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-46328>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-wmjq-jrm2-9wfr> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2025-46328> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-46328>
