Skip to content

2023-3-17 Snowflake JDBC Security Advisory

High
sfc-gh-jfan published GHSA-4g3j-c4wg-6j7x Apr 13, 2023

Package

maven snowflake-jdbc (Maven)

Affected versions

< 3.13.29

Patched versions

3.13.29

Description

Synopsis:

Snowflake JDBC driver addresses a command injection vulnerability via SSO URL authentication. The vulnerability was patched on March 17, 2023 as part of Snowflake JDBC driver Version 3.13.29.

1. Impacted Products

Snowflake JDBC driver versions before Version 3.13.29.

2. Introduction

On March 17th, 2023, Snowflake merged a patch that fixed a command injection vulnerability in the Snowflake JDBC driver via SSO URL authentication. The vulnerability affected the Snowflake JDBC driver before Version 3.13.29. All users should immediately upgrade the Snowflake JDBC driver to the latest version: 3.13.29.

3. Command Injection Vulnerability

3.1 Description

Snowflake was informed by Peter Mularien of Nightcrawler Security, LLC via our bug bounty program of a command injection vulnerability in the Snowflake JDBC driver via SSO URL authentication. Snowflake has evaluated the severity of the issue and determined it was in the high range with a maximum CVSSv3 base score of 7.3.

3.2 Scenarios and attack vector(s)

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.

3.3 Our response

On August 2nd, 2022, Peter Mularien of Nightcrawler Security, LLC reported the issue to Snowflake via our bug bounty program. On March 17th, 2023, Snowflake released a patch in Snowflake JDBC driver Version 3.13.29. The patch ensures that SSO URLs are valid and match an expected pattern.

3.4 Resolution

We strongly recommend users upgrade to Version 3.13.29 as soon as possible.

4. Contact

Please contact security@snowflake.com if you have any questions regarding this advisory. If you discover a security vulnerability in one of our products or websites, please report the issue to HackerOne. For more information, please see our Vulnerability Disclosure Policy.

Severity

High

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
Low
User interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N

CVE ID

CVE-2023-30535

Weaknesses

No CWEs