What’s Vulnerable › Vulnerabilities
CVE-2026-40370: SQL Server Remote Code Execution Vulnerability
- Severity: high (CVSS 8.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.6% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-05-12 · updated 2026-10-26
- Weakness: CWE-73
Description
External control of file name or path in SQL Server allows an authorized attacker to execute code over a network.
Affected products
- Microsoft Sql Server 2016: from 13.0.6300.2 before 13.0.6490.1; from 13.0.7000.253 before 13.0.7085.1 — fixed in 13.0.6490.1, 13.0.7085.1
- Microsoft Sql Server 2017: from 14.0.1000.169 before 14.0.2110.2; from 14.0.3006.16 before 14.0.3530.2 — fixed in 14.0.2110.2, 14.0.3530.2
- Microsoft Sql Server 2019: from 15.0.2000.5 before 15.0.2170.1; from 15.0.4003.23 before 15.0.4470.1 — fixed in 15.0.2170.1, 15.0.4470.1
- Microsoft Sql Server 2022: from 16.0.1000.6 before 16.0.1180.1; from 16.0.4003.1 before 16.0.4252.3 — fixed in 16.0.1180.1, 16.0.4252.3
- Microsoft Sql Server 2025: from 17.0.1000.7 before 17.0.1115.1; from 17.0.4006.2 before 17.0.4040.1 — fixed in 17.0.1115.1, 17.0.4040.1
- Microsoft SQL Server 2016 Service Pack 3 Azure Connect Feature Pack: from 13.0.0 before 13.0.7085.1 — fixed in 13.0.7085.1
- Microsoft SQL Server 2016 Service Pack 3 (GDR): from 13.0.0 before 13.0.6490.1 — fixed in 13.0.6490.1
- Microsoft SQL Server 2017 (CU 31): from 14.0.0 before 14.0.3530.2 — fixed in 14.0.3530.2
- Microsoft SQL Server 2017 (GDR): from 14.0.0 before 14.0.2110.2 — fixed in 14.0.2110.2
- Microsoft SQL Server 2019 (CU 32): from 15.0.0.0 before 15.0.4470.1 — fixed in 15.0.4470.1
- Microsoft SQL Server 2019 (GDR): from 15.0.0 before 15.0.2170.1 — fixed in 15.0.2170.1
- Microsoft SQL Server 2022 for x64-based Systems (CU 24): from 16.0.0.0 before 16.0.4252.3 — fixed in 16.0.4252.3
- Microsoft SQL Server 2022 (GDR): from 16.0.0 before 16.0.1180.1 — fixed in 16.0.1180.1
- Microsoft SQL Server 2025 (CU 4): from 17.0.4040.1 before 17.0.4040.1 — fixed in 17.0.4040.1
- Microsoft SQL Server 2025 for x64-based Systems (GDR): from 17.0.1050.2 before 17.0.1115.1 — fixed in 17.0.1115.1
How to fix
Upgrade to a fixed version: Microsoft Sql Server 2016 13.0.6490.1, 13.0.7085.1; Microsoft Sql Server 2017 14.0.2110.2, 14.0.3530.2; Microsoft Sql Server 2019 15.0.2170.1, 15.0.4470.1; Microsoft Sql Server 2022 16.0.1180.1, 16.0.4252.3; Microsoft Sql Server 2025 17.0.1115.1, 17.0.4040.1; Microsoft SQL Server 2016 Service Pack 3 Azure Connect Feature Pack 13.0.7085.1; Microsoft SQL Server 2016 Service Pack 3 (GDR) 13.0.6490.1; Microsoft SQL Server 2017 (CU 31) 14.0.3530.2; Microsoft SQL Server 2017 (GDR) 14.0.2110.2; Microsoft SQL Server 2019 (CU 32) 15.0.4470.1; Microsoft SQL Server 2019 (GDR) 15.0.2170.1; Microsoft SQL Server 2022 for x64-based Systems (CU 24) 16.0.4252.3. Check the vendor advisory for mitigations.
References
Get alerted when CVE-2026-40370 or the next vulnerability affects your stack