CVE-2026-40370 SQL Server Remote Code Execution Vulnerability
HighCVSS 8.8
EPSS 0.56%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
Description
External control of file name or path in SQL Server allows an authorized attacker to execute code over a network.
Upgrade path
15 packages: 15 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| Microsoft sql server 2016 | < 13.0.6490.1; < 13.0.7085.1; >= 13.0.6300.2, < 13.0.6490.1; >= 13.0.7000.253, < 13.0.7085.1 | 13.0.6490.1, 13.0.7085.1 | Fixed |
| Microsoft SQL Server 2016 Service Pack 3 (GDR) | >= 13.0.0, < 13.0.6490.1 | 13.0.6490.1 | Fixed |
| Microsoft SQL Server 2016 Service Pack 3 Azure Connect Feature Pack | >= 13.0.0, < 13.0.7085.1 | 13.0.7085.1 | Fixed |
| Microsoft sql server 2017 | < 14.0.2110.2; < 14.0.3530.2; >= 14.0.1000.169, < 14.0.2110.2; >= 14.0.3006.16, < 14.0.3530.2 | 14.0.2110.2, 14.0.3530.2 | Fixed |
| Microsoft SQL Server 2017 (CU 31) | >= 14.0.0, < 14.0.3530.2 | 14.0.3530.2 | Fixed |
| Microsoft SQL Server 2017 (GDR) | >= 14.0.0, < 14.0.2110.2 | 14.0.2110.2 | Fixed |
| Microsoft sql server 2019 | < 15.0.2170.1; < 15.0.4470.1; >= 15.0.2000.5, < 15.0.2170.1; >= 15.0.4003.23, < 15.0.4470.1 | 15.0.2170.1, 15.0.4470.1 | Fixed |
| Microsoft SQL Server 2019 (CU 32) | >= 15.0.0.0, < 15.0.4470.1 | 15.0.4470.1 | Fixed |
| Microsoft SQL Server 2019 (GDR) | >= 15.0.0, < 15.0.2170.1 | 15.0.2170.1 | Fixed |
| Microsoft sql server 2022 | < 16.0.1180.1; < 16.0.4252.3; >= 16.0.1000.6, < 16.0.1180.1; >= 16.0.4003.1, < 16.0.4252.3 | 16.0.1180.1, 16.0.4252.3 | Fixed |
| Microsoft SQL Server 2022 (GDR) | >= 16.0.0, < 16.0.1180.1 | 16.0.1180.1 | Fixed |
| Microsoft SQL Server 2022 for x64-based Systems (CU 24) | >= 16.0.0.0, < 16.0.4252.3 | 16.0.4252.3 | Fixed |
| Microsoft sql server 2025 | < 17.0.1115.1; < 17.0.4040.1; >= 17.0.1000.7, < 17.0.1115.1; >= 17.0.4006.2, < 17.0.4040.1 | 17.0.1115.1, 17.0.4040.1 | Fixed |
| Microsoft SQL Server 2025 (CU 4) | >= 17.0.4040.1, < 17.0.4040.1 | 17.0.4040.1 | Fixed |
| Microsoft SQL Server 2025 for x64-based Systems (GDR) | >= 17.0.1050.2, < 17.0.1115.1 | 17.0.1115.1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| Microsoft SQL Server 2016 Service Pack 3 (GDR) | >= 13.0.0, < 13.0.6490.1 | 13.0.6490.1 |
| Microsoft SQL Server 2016 Service Pack 3 Azure Connect Feature Pack | >= 13.0.0, < 13.0.7085.1 | 13.0.7085.1 |
| Microsoft SQL Server 2017 (CU 31) | >= 14.0.0, < 14.0.3530.2 | 14.0.3530.2 |
| Microsoft SQL Server 2017 (GDR) | >= 14.0.0, < 14.0.2110.2 | 14.0.2110.2 |
| Microsoft SQL Server 2019 (CU 32) | >= 15.0.0.0, < 15.0.4470.1 | 15.0.4470.1 |
| Microsoft SQL Server 2019 (GDR) | >= 15.0.0, < 15.0.2170.1 | 15.0.2170.1 |
| Microsoft SQL Server 2022 (GDR) | >= 16.0.0, < 16.0.1180.1 | 16.0.1180.1 |
| Microsoft SQL Server 2022 for x64-based Systems (CU 24) | >= 16.0.0.0, < 16.0.4252.3 | 16.0.4252.3 |
| Microsoft SQL Server 2025 (CU 4) | >= 17.0.4040.1, < 17.0.4040.1 | 17.0.4040.1 |
| Microsoft SQL Server 2025 for x64-based Systems (GDR) | >= 17.0.1050.2, < 17.0.1115.1 | 17.0.1115.1 |
| Microsoft sql server 2016 | >= 13.0.6300.2, < 13.0.6490.1 | 13.0.6490.1 |
| Microsoft sql server 2016 | >= 13.0.7000.253, < 13.0.7085.1 | 13.0.7085.1 |
| Microsoft sql server 2017 | >= 14.0.1000.169, < 14.0.2110.2 | 14.0.2110.2 |
| Microsoft sql server 2017 | >= 14.0.3006.16, < 14.0.3530.2 | 14.0.3530.2 |
| Microsoft sql server 2019 | >= 15.0.2000.5, < 15.0.2170.1 | 15.0.2170.1 |
| Microsoft sql server 2019 | >= 15.0.4003.23, < 15.0.4470.1 | 15.0.4470.1 |
| Microsoft sql server 2022 | >= 16.0.1000.6, < 16.0.1180.1 | 16.0.1180.1 |
| Microsoft sql server 2022 | >= 16.0.4003.1, < 16.0.4252.3 | 16.0.4252.3 |
| Microsoft sql server 2025 | >= 17.0.1000.7, < 17.0.1115.1 | 17.0.1115.1 |
| Microsoft sql server 2025 | >= 17.0.4006.2, < 17.0.4040.1 | 17.0.4040.1 |
| Microsoft sql server 2025 | < 17.0.4040.1 | 17.0.4040.1 |
| Microsoft sql server 2022 | < 16.0.4252.3 | 16.0.4252.3 |
| Microsoft sql server 2017 | < 14.0.2110.2 | 14.0.2110.2 |
| Microsoft sql server 2019 | < 15.0.2170.1 | 15.0.2170.1 |
| Microsoft sql server 2016 | < 13.0.6490.1 | 13.0.6490.1 |
Show 5 more
| Product | Affected versions | Fixed in |
|---|---|---|
| Microsoft sql server 2016 | < 13.0.7085.1 | 13.0.7085.1 |
| Microsoft sql server 2017 | < 14.0.3530.2 | 14.0.3530.2 |
| Microsoft sql server 2022 | < 16.0.1180.1 | 16.0.1180.1 |
| Microsoft sql server 2025 | < 17.0.1115.1 | 17.0.1115.1 |
| Microsoft sql server 2019 | < 15.0.4470.1 | 15.0.4470.1 |
References
- MSRC Security Update Guide patch vendor-advisory
- KB5089899 patch
- KB5089899 vendor-advisory
- KB5089900 patch
- KB5089900 vendor-advisory
- KB5090347 patch
- KB5090347 vendor-advisory
- KB5090408 patch
- KB5090408 vendor-advisory
- KB5089271 patch
- KB5089271 vendor-advisory
- KB5089270 patch
- KB5089270 vendor-advisory
- KB5090354 patch
- KB5090354 vendor-advisory
- KB5091158 patch
- KB5091158 vendor-advisory
- KB5091223 patch
- KB5091223 vendor-advisory
- KB5090407 patch
- KB5090407 vendor-advisory
- ENISA EUVD EUVD-2026-29652 third-party-advisory