snowflake-connector-python is vulnerable to Improper Certificate Validation
92
Critical Risk
The connector substitutes the standard library ssl.SSLContext with a PyOpenSSLContext when wrapping sockets, and in the affected versions that substitution accepts the peer certificate without verifying it matches the requested hostname. A network-positioned attacker able to intercept or redirect traffic can present a certificate signed by any trusted CA for any domain and have the connector accept the connection. This exposes credentials, query data, and staged file contents to interception and tampering, and can let the attacker issue arbitrary SQL within the victim's connector session. The fix carries forward TLS version, options, and verification flags from the stdlib context and adds explicit post-handshake hostname verification.
You are affected if you are using a version that falls within the vulnerable range.
snowflake-connector-python is vulnerable to Improper Certificate Validation in versions 3.17.4 - 3.18.0 and 4.0.0 - 4.7.0.
Upgrade the snowflake-connector-python library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant