What’s Vulnerable › Vulnerabilities

CVE-2026-40370: SQL Server Remote Code Execution Vulnerability

Description

External control of file name or path in SQL Server allows an authorized attacker to execute code over a network.

Affected products

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