CVE-2022-42965 Exponential ReDoS in snowflake-connector-python leads to denial of service
An attacker can cause a denial of service in applications using the Snowflake Python connector by supplying malicious input to an internal file transfer method.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-42965?
CVE-2022-42965 is a low-severity denial of service vulnerability in snowflake-connector-python, published on 9 Nov 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
An exponential ReDoS (Regular Expression Denial of Service) can be triggered in the snowflake-connector-python PyPI package, when an attacker is able to supply arbitrary input to the undocumented get_file_transfer_type method
Weakness: CWE-1333
Which versions are affected by CVE-2022-42965?
3 open source packages ship an affected version, including snowflake-connector-python. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
snowflake-connector-python PyPI | All versions | 2.8.2 |
snowflake-connector-python PyPI | All versions | 2.8.2 |
snowflake-connector-python PyPI | All versions | 2.8.2 |
Products include Snowflake Snowflake Connector.
How do I fix CVE-2022-42965?
Upgrade snowflake-connector-python to 2.8.2 or later.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2022-42965 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-42965 exists.
Other vulnerabilities in snowflake-connector-python
- CVE-2023-34230 Snowflake Connector vulnerable to Command Injection
- CVE-2023-34232 Snowflake NodeJS Driver vulnerable to Command Injection
- CVE-2023-34233 Snowflake Python Connector vulnerable to Command Injection
- CVE-2025-24793 Snowflake Connector for Python has an SQL Injection in write_pandas
- CVE-2025-24794 The Snowflake Connector for Python uses insecure deserialization of the OCSP response cache
Sources
Also known as GHSA-4r6j-fwcx-94cf, PYSEC-2026-922.