{"id":"CVE-2025-46328","aliases":["CVE-2025-46328","GHSA-wmjq-jrm2-9wfr"],"related":[],"kind":"vulnerability","state":"published","title":"NodeJS Driver for Snowflake has race condition when checking access to Easy Logging configuration file","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"# Issue\nSnowflake discovered and remediated a vulnerability in the NodeJS Driver for Snowflake (“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 1.10.0 through 2.0.3. Snowflake fixed the issue in version 2.0.4.\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 2.0.4 of the NodeJS Driver for Snowflake, which fixes this issue. We recommend users upgrade to version 2.0.4.\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).","format":"markdown","source":"ghsa"},{"lang":"es","text":"snowflake-connector-nodejs es un controlador NodeJS para Snowflake. Las versiones desde la 1.10.0 hasta la 2.0.4 son vulnerables a una condición de ejecución TOCTOU (Time-of-Check to Time-of-Use). Al usar la función Easy Logging en Linux y macOS, el controlador lee la configuración de registro de un archivo proporcionado por el usuario. En Linux y macOS, el controlador verifica que solo su propietario pueda escribir en el archivo de configuración. Esta comprobación era vulnerable a una condición de ejecución TOCTOU y no verificaba que el propietario del archivo coincidiera con el usuario que ejecutaba el controlador. Esto podría permitir que un atacante local con acceso de escritura al archivo de configuración o al directorio que lo contiene sobrescribiera la configuración y obtuviera el control sobre el nivel de registro y la ubicación de salida. Este problema se ha corregido en la versión 2.0.4.","source":"nvd"}],"published":"2025-04-28T20:31:03.000Z","modified":"2026-06-17T09:26:14.630Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","score":3.3,"rating":"LOW"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","score":3.3,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","score":3.3,"rating":"LOW"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7,"rating":"HIGH"}],"cwes":["CWE-367"],"affected":[{"ranges":[{"version":">= 1.10.0, < 2.0.4","status":"affected"}],"vendor":"snowflakedb","product":"snowflake-connector-nodejs","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"1.10.0","status":"affected","fixed":"2.0.4"}],"ecosystem":"npm","package":"snowflake-sdk","purl":"pkg:npm/snowflake-sdk","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"1.10.0","fixed":"2.0.4"}],"vendor":"snowflake","product":"snowflake_connector","cpe":"cpe:2.3:a:snowflake:snowflake_connector:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/snowflakedb/snowflake-connector-nodejs/security/advisories/GHSA-wmjq-jrm2-9wfr","tags":["vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/snowflakedb/snowflake-connector-nodejs/commit/e94c24112271e1f44c271634bf29a3188acc68d0","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-46328","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/snowflakedb/snowflake-connector-nodejs","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-04-29T13:41:05.111Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-46328","url":"https://www.cve.org/CVERecord?id=CVE-2025-46328","licence":"CVE Terms of Use","modified":"2025-04-29T13:41:29.830Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-wmjq-jrm2-9wfr","url":"https://github.com/advisories/GHSA-wmjq-jrm2-9wfr","licence":"CC-BY-4.0","modified":"2025-04-29T13:10:46.000Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-46328","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-46328","licence":"Public domain","modified":"2026-06-17T09:26:14.630Z"}],"updatedAt":"2026-11-25T22:58:57.049Z","epss":{"score":0.00175,"percentile":0.07351,"date":"2026-12-01T12:00:22.000Z"}}