Intel

AIKIDO-2026-572073

snowflake-connector-python is vulnerable to Improper Certificate Validation

Improper Certificate ValidationCVE-2026-15925 Published 5 days ago

92

Critical Risk

This Affects:

PYTHONsnowflake-connector-python
3.17.4 - 3.18.0
Fixed in 3.18.1
4.0.0 - 4.7.0
Fixed in 4.7.1
Are you affected? Scan for Free

TL;DR

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.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

snowflake-connector-python is vulnerable to Improper Certificate Validation in versions 3.17.4 - 3.18.0 and 4.0.0 - 4.7.0.

How to fix this

Upgrade the snowflake-connector-python library to the patch version.