CVE-2022-42965 Exponential ReDoS in snowflake-connector-python leads to denial of service

Low 3.7 Published Updated

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.

PackageAffectedFixed in
snowflake-connector-python PyPIAll versions2.8.2
snowflake-connector-python PyPIAll versions2.8.2
snowflake-connector-python PyPIAll versions2.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.

Sources

Also known as GHSA-4r6j-fwcx-94cf, PYSEC-2026-922.

Is CVE-2022-42965 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free