Improper Validation of Certificate with Host Mismatch Affecting com.microsoft.sqlserver:mssql-jdbc package, versions [,10.2.4.jre8)[11.1.0.jre11-preview, 11.2.4.jre8)[12.1.0.jre11-preview, 12.2.1.jre8)[12.3.0.jre11-preview, 12.4.3.jre8)[12.5.0.jre11-preview, 12.6.5.jre8)[12.7.0.jre11-preview, 12.8.2.jre8)[12.9.0.jre11-preview, 12.10.2.jre8)[13.1.0.jre8-preview, 13.2.1.jre8)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.15% (37th 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-JAVA-COMMICROSOFTSQLSERVER-13821835
  • published4 Nov 2025
  • disclosed14 Oct 2025
  • creditNikita Markevich

Introduced: 14 Oct 2025

NewCVE-2025-59250  (opens in a new tab)
CWE-297  (opens in a new tab)

How to fix?

Upgrade com.microsoft.sqlserver:mssql-jdbc to version 10.2.4.jre8, 11.2.4.jre8, 12.2.1.jre8, 12.4.3.jre8, 12.6.5.jre8, 12.8.2.jre8, 12.10.2.jre8, 13.2.1.jre8 or higher.

Overview

Affected versions of this package are vulnerable to Improper Validation of Certificate with Host Mismatch via the parseCommonName() method . An attacker can gain unauthorized access or impersonate users by crafting malicious X.509 certificates that bypass hostname validation through embedding of fake hostnames within other certificate attributes.

CVSS Base Scores

version 4.0
version 3.1