CVE-2023-51662: Snowflake.Data Snowflake Connector .NET Does Not Vulnerability

MODERATE
Advisory Identifier: GHSA-hwcc-4cv8-cf3h
CVSS 6.0
CWE-295
Published
Advisory Summary

CVE-2023-51662 is a MODERATE (CVSS 6.0) snowflake connector .net does not vulnerability (CWE-295: Improper Certificate Validation) affecting Snowflake.Data libraries in the NuGet ecosystem. The issue involves snowflake connector .net does not properly check the certificate revocation list (crl). Remediation is available by upgrading affected packages to version 2.1.5.

CVE-2023-51662 at a Glance

CVE Identifier CVE-2023-51662
GHSA Identifier GHSA-hwcc-4cv8-cf3h
Severity MODERATE
CVSS v3.1 Base Score 6.0
CWE Classification CWE-295: Improper Certificate Validation
Affected Product Snowflake.Data
Package Ecosystem NuGet
Published Date
Last Updated

Security Impact

CVSS: 6.0

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:A/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:L).

Attack Vector Adjacent (AV:A)
Attack Complexity High (AC:H)
Privileges Required High (PR:H)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability Low (A:L)

How to Fix CVE-2023-51662

To remediate this vulnerability, upgrade all affected Snowflake.Data dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

Snowflake.Data fixed: 2.1.5
Upgrade Snowflake.Data to 2.1.5
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for Snowflake.Data

How to Check if You Are Affected

To determine whether your application is affected by CVE-2023-51662, inspect your project dependencies for Snowflake.Data:

inspect dependencies for Snowflake.Data

Analyze the terminal output to locate any version of Snowflake.Data in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.1.5), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-295: Improper Certificate Validation, where the product does not validate, or incorrectly validates, a certificate. In Snowflake.Data, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Issue Snowflake recently received a report about a vulnerability in the Snowflake Connector .NET where the checks against the Certificate Revocation List (CRL) were not performed where the insecureMode flag was set to false, which is the default setting. The vulnerability affects versions between 2.0.25 and 2.1.4 (inclusive). Snowflake fixed the issue in [version 2.1.5](https://docs.snowflake.com/release-notes/clients-drivers/dotnet-2023#version-2-1-5-december-18-2023). ### Attack Scenario Snowflake uses CRL to check if a TLS certificate has been revoked before its expiration date. The lack of correct validation of revoked certificates could, in theory, allow an attacker who has both access to the private key of a correctly issued Snowflake certificate and the ability to intercept network traffic to perform a Man-in-the-Middle (MitM) attack in order to compromise Snowflake credentials used by the driver. The vulnerability is difficult to exploit given both conditions required and, at the time of this advisory's publication, Snowflake is not aware of any compromise of its certificates, nor unauthorized issuance of such by any publicly trusted Certificate Authority (CA). However, an upgrade to the newest version is recommended to ensure the highest level of security and protection against future unforeseen threats. ### Solution On December 18, 2023, Snowflake released [version 2.1.5](https://docs.snowflake.com/release-notes/clients-drivers/dotnet-2023#version-2-1-5-december-18-2023) of the Snowflake Connector .NET, which fixes the issue, and we recommend users upgrade to [version 2.1.5](https://docs.snowflake.com/release-notes/clients-drivers/dotnet-2023#version-2-1-5-december-18-2023). Customers continuing to use the impacted versions of the connector should update their insecureMode flag to true. ### Acknowledgement Snowflake would like to thank [Timo Vink](https://github.com/TimoVink) for reporting this vulnerability. ### Additional Information 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](https://hackerone.com/snowflake?type=team).

CVE-2023-51662 Affected Snowflake.Data Versions

1 component(s)
Fixed Versions:
2.1.5
Product / Package Ecosystem Affected Versions Fixed Version
Snowflake.Data
NuGet
≥ 2.0.25
< 2.1.5
2.1.5

References

Frequently Asked Questions

What is CVE-2023-51662?
CVE-2023-51662 is a security vulnerability in Snowflake.Data involving Snowflake Connector .NET does not properly check the Certificate Revocation List (CRL) under CWE-295: Improper Certificate Validation.
Which Snowflake.Data versions are affected?
Affected versions include releases prior to 2.1.5 across affected packages: Snowflake.Data.
What version fixes CVE-2023-51662?
Upgrading to 2.1.5 (or the latest patched release for your respective branch) resolves the vulnerability.
Is Snowflake.Data affected?
Yes, Snowflake.Data is affected in releases prior to 2.1.5. Upgrade your dependency to 2.1.5 or later.
What is the CVSS score of CVE-2023-51662?
CVE-2023-51662 has a CVSS v3.1 base score of 6.0 (MODERATE) with vector string CVSS:3.1/AV:A/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:L.
What CWE is associated with CVE-2023-51662?
CVE-2023-51662 is classified under CWE-295: Improper Certificate Validation (The product does not validate, or incorrectly validates, a certificate.).
How can I check NuGet dependencies for CVE-2023-51662?
Run the dependency tree command: 'inspect dependencies for Snowflake.Data'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-hwcc-4cv8-cf3h",
  "modified" : "2023-12-22T19:51:09Z",
  "published" : "2023-12-22T19:51:09Z",
  "aliases" : [ "CVE-2023-51662" ],
  "summary" : "Snowflake Connector .NET does not properly check the Certificate Revocation List (CRL)",
  "details" : "### Issue\nSnowflake recently received a report about a vulnerability in the Snowflake Connector .NET where the checks against the Certificate Revocation List (CRL) were not performed where the insecureMode flag was set to false, which is the default setting. The vulnerability affects versions between 2.0.25 and 2.1.4 (inclusive). Snowflake fixed the issue in [version 2.1.5](https://docs.snowflake.com/release-notes/clients-drivers/dotnet-2023#version-2-1-5-december-18-2023).\n\n### Attack Scenario\nSnowflake uses CRL to check if a TLS certificate has been revoked before its expiration date. The lack of correct validation of revoked certificates could, in theory, allow an attacker who has both access to the private key of a correctly issued Snowflake certificate and the ability to intercept network traffic to perform a Man-in-the-Middle (MitM) attack in order to compromise Snowflake credentials used by the driver.\n\nThe vulnerability is difficult to exploit given both conditions required and, at the time of this advisory's publication, Snowflake is not aware of any compromise of its certificates, nor unauthorized issuance of such by any publicly trusted Certificate Authority (CA). However, an upgrade to the newest version is recommended to ensure the highest level of security and protection against future unforeseen threats.\n\n### Solution\nOn December 18, 2023, Snowflake released [version 2.1.5](https://docs.snowflake.com/release-notes/clients-drivers/dotnet-2023#version-2-1-5-december-18-2023) of the Snowflake Connector .NET, which fixes the issue, and we recommend users upgrade to [version 2.1.5](https://docs.snowflake.com/release-notes/clients-drivers/dotnet-2023#version-2-1-5-december-18-2023).  Customers continuing to use the impacted versions of the connector should update their insecureMode flag to true. \n\n### Acknowledgement\nSnowflake would like to thank [Timo Vink](https://github.com/TimoVink) for reporting this vulnerability.\n\n### Additional Information\nIf 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](https://hackerone.com/snowflake?type=team).",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:A/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "Snowflake.Data"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.0.25"
      }, {
        "fixed" : "2.1.5"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 2.1.4"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/snowflakedb/snowflake-connector-net/security/advisories/GHSA-hwcc-4cv8-cf3h"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-51662"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/snowflakedb/snowflake-connector-net/commit/49cb77ddd6e18c110eca35aa580e89d73c46cc33"
  }, {
    "type" : "WEB",
    "url" : "https://docs.snowflake.com/release-notes/clients-drivers/dotnet-2023#version-2-1-5-december-18-2023"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/snowflakedb/snowflake-connector-net"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-295" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-12-22T19:51:09Z",
    "nvd_published_at" : "2023-12-22T17:15:10Z"
  }
}