CVE-2023-30535 Snowflake JDBC vulnerable to command injection via SSO URL authentication

High 7.3 Published Updated

Attackers can achieve remote code execution on user machines by tricking them into visiting a malicious connection URL processed by the Snowflake JDBC driver.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2023-30535?

CVE-2023-30535 is a high-severity command injection vulnerability in snowflakedb snowflake-jdbc, published on 14 Apr 2023. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

Snowflake JDBC provides a JDBC type 4 driver that supports core functionality, allowing Java program to connect to Snowflake. Users of the Snowflake JDBC driver were vulnerable to a command injection vulnerability. An attacker could set up a malicious, publicly accessible server which responds to the SSO URL with an attack payload. If the attacker then tricked a user into visiting the maliciously crafted connection URL, the user’s local machine would render the malicious payload, leading to a remote code execution. The vulnerability was patched on March 17, 2023 as part of Snowflake JDBC driver Version 3.13.29. All users should immediately upgrade the Snowflake JDBC driver to the latest version: 3.13.29.

Weakness: CWE-77, CWE-20

Which versions are affected by CVE-2023-30535?

2 open source packages ship an affected version, including net.snowflake:snowflake-jdbc. It affects 1 product.

PackageAffectedFixed in
net.snowflake:snowflake-jdbc MavenAll versions3.13.29
net.snowflake:snowflake-jdbc MavenAll versions3.13.29

Products include Snowflake Snowflake Jdbc.

How do I fix CVE-2023-30535?

Upgrade net.snowflake:snowflake-jdbc to 3.13.29 or later.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2023-30535 being exploited?

There is no known exploitation of CVE-2023-30535 in the wild and no public exploit code.

Sources

Also known as GHSA-4g3j-c4wg-6j7x.

Is CVE-2023-30535 in your software?

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

Check your SBOMs for free