CVE-2023-51662: Snowflake.Data Snowflake Connector .NET Does Not Vulnerability
MODERATECVE-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
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).
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.
Upgrade Snowflake.Data to 2.1.5
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
CVE-2023-51662 Affected Snowflake.Data Versions
1 component(s)| 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?
Which Snowflake.Data versions are affected?
What version fixes CVE-2023-51662?
Is Snowflake.Data affected?
What is the CVSS score of CVE-2023-51662?
What CWE is associated with CVE-2023-51662?
How can I check NuGet dependencies for CVE-2023-51662?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}