Unprotected Storage of Credentials Affecting microsoft.data.sqlclient package, versions [,2.1.7)[3.0.0,3.1.5)[4.0.0,4.0.5)[5.0.0,5.1.3)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Not Defined
EPSS
0.06% (26th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-DOTNET-MICROSOFTDATASQLCLIENT-6149434
  • published10 Jan 2024
  • disclosed9 Jan 2024
  • creditVishal Mishra, Anita Gaud

Introduced: 9 Jan 2024

CVE-2024-0056  (opens in a new tab)
CWE-420  (opens in a new tab)

How to fix?

Upgrade Microsoft.Data.SqlClient to version 2.1.7, 3.1.5, 4.0.5, 5.1.3 or higher.

Overview

Affected versions of this package are vulnerable to Unprotected Storage of Credentials. An attacker can steal authentication credentials intended for the database server by performing an adversary-in-the-middle attack between the SQL client and the SQL server, even if the connection is established over an encrypted channel like TLS.

CVSS Scores

version 3.1