{"answers":{"affected":"3 open source packages ship an affected version, including github.com/snowflakedb/gosnowflake. It affects 1 product.","exploited":"There is no known exploitation of CVE-2025-46327 in the wild and no public exploit code.","fix":"Upgrade github.com/snowflakedb/gosnowflake to 1.13.3 or later.","what":"CVE-2025-46327 is a low-severity vulnerability in snowflakedb gosnowflake, published on 28 Apr 2025. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-46327 and fix it if it is affected.\n\nWhat it is: CVE-2025-46327 is a low-severity vulnerability in snowflakedb gosnowflake, published on 28 Apr 2025. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2025-46327 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/snowflakedb/gosnowflake (Go): affected from 1.7.0; fixed in 1.13.3\n- github.com/snowflakedb/gosnowflake (Go): affected from 1.7.0; fixed in 1.13.3\n- github.com/snowflakedb/gosnowflake (Go): affected from 1.7.0; fixed in 1.13.3\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-46327/ (Markdown: https://insights.sbomify.com/CVE-2025-46327/index.md)","id":"CVE-2025-46327","markdown":"https://insights.sbomify.com/CVE-2025-46327/index.md","name":"CVE-2025-46327","record":{"aliases":["AZL-61501","AZL-61654","GHSA-6jgm-j7h2-2fqg","GO-2025-3650","MINI-qw9q-3whx-xw68"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_modify","security_bypass"],"network_reachable":"adjacent_or_local","non_default_config":true,"product_category":"Go Snowflake driver","requires_auth":"low_privilege","summary":"A local attacker can exploit a race condition in the Go Snowflake driver's Easy Logging feature to overwrite configuration files and control logging output.","user_interaction":"not_required","vuln_class":"race_condition"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"gosnowflake","vendor":"snowflake"}],"cvss":{"score":3.3,"severity":"low","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-367","name":"Time-of-check Time-of-use (TOCTOU) Race Condition"}],"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.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Go Snowflake Driver has race condition when checking access to Easy Logging configuration file","id":"CVE-2025-46327","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"race_condition","year":"2025"},"n_packages":3,"n_references":2,"next":{"headline":"NodeJS Driver for Snowflake has race condition when checking access to Easy Logging configuration file","id":"CVE-2025-46328"},"packages":[{"ecosystem":"Go","fixed":["1.13.3"],"introduced":["1.7.0"],"last_affected":[],"package":"github.com/snowflakedb/gosnowflake","purl":null,"source":"GHSA-6jgm-j7h2-2fqg"},{"ecosystem":"Go","fixed":["1.13.3"],"introduced":["1.7.0"],"last_affected":[],"package":"github.com/snowflakedb/gosnowflake","purl":"pkg:golang/github.com/snowflakedb/gosnowflake","source":"GHSA-6jgm-j7h2-2fqg"},{"ecosystem":"Go","fixed":["1.13.3"],"introduced":["1.7.0"],"last_affected":[],"package":"github.com/snowflakedb/gosnowflake","purl":"pkg:golang/github.com/snowflakedb/gosnowflake","source":"GO-2025-3650"}],"prev":{"headline":"Snowflake Connector for .NET has race condition when checking access to Easy Logging configuration file","id":"CVE-2025-46326"},"products":["gosnowflake"],"published":"2025-04-28","related":[{"cvss_score":7.3,"headline":"Snowflake Golang Driver vulnerable to Command Injection","id":"CVE-2023-34231","kev_date_added":null,"published":"2023-06-08"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-04-29","vendors":["snowflakedb"]},"summary":"A local attacker can exploit a race condition in the Go Snowflake driver's Easy Logging feature to overwrite configuration files and control logging output.","url":"https://insights.sbomify.com/CVE-2025-46327/"}