May 2026: SQL Server Remote Code Execution Vulnerability
CVE-2026-40370 Published on May 12, 2026

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

Vendor Advisory NVD

Weakness Type

External Control of File Name or Path

The software allows user input to control or influence paths or file names that are used in filesystem operations.


Products Associated with CVE-2026-40370

Want to know whenever a new CVE is published for Microsoft products? stack.watch will email you.

 
 
 
 
 

Affected Versions

Microsoft SQL Server 2016 Service Pack 3 (GDR): Microsoft SQL Server 2016 Service Pack 3 Azure Connect Feature Pack: Microsoft SQL Server 2017 (CU 31): Microsoft SQL Server 2017 (GDR): Microsoft SQL Server 2019 (CU 32): Microsoft SQL Server 2019 (GDR): Microsoft SQL Server 2022 (GDR): Microsoft SQL Server 2022 for x64-based Systems (CU 24): Microsoft SQL Server 2025 (CU 4): Microsoft SQL Server 2025 for x64-based Systems (GDR):