{"answers":{"affected":"2 open source packages ship an affected version, including github.com/snowflakedb/gosnowflake. It affects 1 product.","exploited":"There is no known exploitation of CVE-2023-34231 in the wild and no public exploit code.","fix":"Upgrade github.com/snowflakedb/gosnowflake to 1.6.19 or later.","what":"CVE-2023-34231 is a high-severity command injection vulnerability in snowflakedb gosnowflake, published on 8 Jun 2023. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2023-34231 and fix it if it is affected.\n\nWhat it is: CVE-2023-34231 is a high-severity command injection vulnerability in snowflakedb gosnowflake, published on 8 Jun 2023. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2023-34231 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/snowflakedb/gosnowflake (Go): affected all versions; fixed in 1.6.19\n- github.com/snowflakedb/gosnowflake (Go): affected all versions; fixed in 1.6.19\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-2023-34231/ (Markdown: https://insights.sbomify.com/CVE-2023-34231/index.md)","id":"CVE-2023-34231","markdown":"https://insights.sbomify.com/CVE-2023-34231/index.md","name":"CVE-2023-34231","record":{"aliases":["GHSA-fwv2-65wh-2w8c"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Snowflake Golang driver","requires_auth":"low_privilege","summary":"Attackers can achieve remote code execution on user machines by tricking them into visiting a malicious SSO connection URL in the Snowflake Golang driver.","user_interaction":"required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"gosnowflake","vendor":"snowflake"}],"cvss":{"score":7.3,"severity":"high","source":"cna","vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N","version":"3.0"},"cwes":[{"id":"CWE-77","name":"Improper Neutralization of Special Elements used in a Command"}],"description":"gosnowflake is th Snowflake Golang driver. Prior to version 1.6.19, a command injection vulnerability exists in the Snowflake Golang driver via single sign-on (SSO) browser URL authentication. In order to exploit the potential for command injection, an attacker would need to be successful in (1) establishing a malicious resource and (2) redirecting users to utilize the resource. The attacker could set up a malicious, publicly accessible server which responds to the SSO URL with an attack payload. If the attacker then tricked a user into visiting the maliciously crafted connection URL, the user’s local machine would render the malicious payload, leading to a remote code execution. This attack scenario can be mitigated through URL whitelisting as well as common anti-phishing resources. A patch is available in version 1.6.19.","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":"Snowflake Golang Driver vulnerable to Command Injection","id":"CVE-2023-34231","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"command_injection","year":"2023"},"n_packages":2,"n_references":3,"next":{"headline":"Snowflake NodeJS Driver vulnerable to Command Injection","id":"CVE-2023-34232"},"packages":[{"ecosystem":"Go","fixed":["1.6.19"],"introduced":["0"],"last_affected":[],"package":"github.com/snowflakedb/gosnowflake","purl":null,"source":"GHSA-fwv2-65wh-2w8c"},{"ecosystem":"Go","fixed":["1.6.19"],"introduced":["0"],"last_affected":[],"package":"github.com/snowflakedb/gosnowflake","purl":"pkg:golang/github.com/snowflakedb/gosnowflake","source":"GHSA-fwv2-65wh-2w8c"}],"prev":{"headline":"Snowflake Connector vulnerable to Command Injection","id":"CVE-2023-34230"},"products":["gosnowflake"],"published":"2023-06-08","related":[{"cvss_score":3.3,"headline":"Go Snowflake Driver has race condition when checking access to Easy Logging configuration file","id":"CVE-2025-46327","kev_date_added":null,"published":"2025-04-28"}],"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":"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":"total"},"state":"PUBLISHED","updated":"2025-01-06","vendors":["snowflakedb"]},"summary":"Attackers can achieve remote code execution on user machines by tricking them into visiting a malicious SSO connection URL in the Snowflake Golang driver.","url":"https://insights.sbomify.com/CVE-2023-34231/"}