High severity8.8NVD Advisory· Published May 12, 2026· Updated Jun 18, 2026
CVE-2026-40370
CVE-2026-40370
Description
External control of file name or path in SQL Server allows an authorized attacker to execute code over a network.
Affected products
6cpe:2.3:a:microsoft:sql_server_2016:*:*:*:*:*:*:x64:*+ 5 more
- cpe:2.3:a:microsoft:sql_server_2016:*:*:*:*:*:*:x64:*range: >=13.0.6300.2,<13.0.6490.1
- cpe:2.3:a:microsoft:sql_server_2017:*:*:*:*:*:*:x64:*range: >=14.0.1000.169,<14.0.2110.2
- cpe:2.3:a:microsoft:sql_server_2019:*:*:*:*:*:*:x64:*range: >=15.0.2000.5,<15.0.2170.1
- cpe:2.3:a:microsoft:sql_server_2022:*:*:*:*:*:*:x64:*range: >=16.0.1000.6,<16.0.1180.1
- cpe:2.3:a:microsoft:sql_server_2025:*:*:*:*:*:*:x64:*range: >=17.0.1000.7,<17.0.1115.1
- (no CPE)
Patches
Vulnerability mechanics
References
1- msrc.microsoft.com/update-guide/vulnerability/CVE-2026-40370nvdVendor Advisory
News mentions
2- Patch Tuesday - May 2026Rapid7 Blog · May 13, 2026
- Microsoft May 2026 Patch Tuesday fixes 120 flaws, no zero-daysBleepingComputer · May 12, 2026