CVE-2026-40370Important
SQL Server Remote Code Execution Vulnerability
Assessment
External control of file name or path in SQL Server allows an authorized attacker to execute code over a network.
- Severity
- Important
- CVSS base score
- 8.8CVSS:3.1/
AV:N/ AC:L/ PR:L/ UI:N/ S:U/ C:H/ I:H/ A:H/ E:U/ RL:O/ RC:C - Impact
- Remote Code Execution
- EPSS, next 30 days
- 1.0%Higher than 61.7% of scored CVEs · FIRST model run 29 Sep 2026 · about EPSS
- Public exploit code
- No Nuclei template lists it
- Exploitability
- Exploitation Less Likely
- Publicly disclosed
- No
- Customer action
- Required: apply the update
- Component
- SQL Server
- Weakness
- CWE-73: External Control of File Name or Path
- Issued by
- Microsoft
- Published
- 12 May 2026 · May 2026
- Last revised
- 12 May 2026
Updates that fix it
10 KBs| KB | Type | Restart | Applies to | Other CVEs |
|---|---|---|---|---|
| KB5089270 | Security Update | — | Microsoft SQL Server 2016 for x64-based Systems Service Pack 3 Azure Connect Feature Pack | All CVEs in KB5089270 |
| KB5089271 | Security Update | — | Microsoft SQL Server 2016 for x64-based Systems Service Pack 3 (GDR) | All CVEs in KB5089271 |
| KB5089899 | Security Update | — | Microsoft SQL Server 2025 for x64-based Systems (CU4) | All CVEs in KB5089899 |
| KB5089900 | Security Update | — | Microsoft SQL Server 2022 for x64-based Systems (CU 24) | All CVEs in KB5089900 |
| KB5090347 | Security Update | — | Microsoft SQL Server 2017 for x64-based Systems (GDR) | All CVEs in KB5090347 |
| KB5090354 | Security Update | — | Microsoft SQL Server 2017 for x64-based Systems (CU 31) | All CVEs in KB5090354 |
| KB5090407 | Security Update | — | Microsoft SQL Server 2019 for x64-based Systems (CU 32) | All CVEs in KB5090407 |
| KB5090408 | Security Update | — | Microsoft SQL Server 2019 for x64-based Systems (GDR) | All CVEs in KB5090408 |
| KB5091158 | Security Update | — | Microsoft SQL Server 2022 for x64-based Systems (GDR) | All CVEs in KB5091158 |
| KB5091223 | Security Update | — | Microsoft SQL Server 2025 for x64-based Systems (GDR) | All CVEs in KB5091223 |
Affected products
SQL Server10 affected products
- Microsoft SQL Server 2016 for x64-based Systems Service Pack 3 (GDR)
- Microsoft SQL Server 2016 for x64-based Systems Service Pack 3 Azure Connect Feature Pack
- Microsoft SQL Server 2017 for x64-based Systems (CU 31)
- Microsoft SQL Server 2017 for x64-based Systems (GDR)
- Microsoft SQL Server 2019 for x64-based Systems (CU 32)
- Microsoft SQL Server 2019 for x64-based Systems (GDR)
- Microsoft SQL Server 2022 for x64-based Systems (CU 24)
- Microsoft SQL Server 2022 for x64-based Systems (GDR)
- Microsoft SQL Server 2025 for x64-based Systems (CU4)
- Microsoft SQL Server 2025 for x64-based Systems (GDR)