VDB
Sign up
CRITICAL

GHSA-5cc2-282f-jjq2

Snowflake Connector for Python improperly verifies TLS hostnames

Quick fix

GHSA-5cc2-282f-jjq2 — snowflake-connector-python: upgrade to the fixed version with the command below.

pip install --upgrade 'snowflake-connector-python>=3.18.1'

Details

Improper TLS hostname verification in Snowflake Connector for Python versions prior to 4.7.1 and 3.18.1 may have allowed a network-positioned attacker to bypass certificate hostname validation on HTTPS connections made by the connector. An attacker with on-path network access could exploit this by intercepting or redirecting network traffic and presenting a certificate signed by any trusted CA for any domain, causing the connector to accept connections without validating that the certificate matched the requested hostname. Successful exploitation requires an on-path traffic interception capability (e.g. ARP/DNS poisoning, rogue access point, BGP hijacking, or malicious proxy/exit node). This vulnerability may have exposed credentials, query data, and staged file contents to interception and tampering, and may have enabled the attacker to issue arbitrary SQL within the context of the victim's connector session. Impact is limited by the privileges of the affected Snowflake role. The fix is available in Snowflake Connector for Python versions 4.7.1 and 3.18.1. Users must manually upgrade.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/snowflake-connector-python
Introduced in: 0Fixed in: 3.18.1
Fixpip install --upgrade 'snowflake-connector-python>=3.18.1'
PyPI/snowflake-connector-python
Introduced in: 4.0.0Fixed in: 4.7.1
Fixpip install --upgrade 'snowflake-connector-python>=4.7.1'

References