SQL Server Remote Code Execution Vulnerability
Priority MEDIUM 41CWE-73Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and Microsoft. Impact type from Microsoft.
Summary
External control of file name or path in SQL Server allows an authorized attacker to execute code over a network.
Why it matters now
Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00555 46th percentileScored 2026-11-07
Fix Fixed Microsoft: 10 updates
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Microsoft | Microsoft SQL Server 2016 Service Pack 3 (GDR) | 13.0.0 to before 13.0.6490.1 | 13.0.6490.1 | Patch available | CNA |
| Microsoft | Microsoft SQL Server 2016 Service Pack 3 Azure Connect Feature Pack | 13.0.0 to before 13.0.7085.1 | 13.0.7085.1 | Patch available | CNA |
| Microsoft | Microsoft SQL Server 2017 (CU 31) | 14.0.0 to before 14.0.3530.2 | 14.0.3530.2 | Patch available | CNA |
| Microsoft | Microsoft SQL Server 2017 (GDR) | 14.0.0 to before 14.0.2110.2 | 14.0.2110.2 | Patch available | CNA |
| Microsoft | Microsoft SQL Server 2019 (CU 32) | 15.0.0.0 to before 15.0.4470.1 | 15.0.4470.1 | Patch available | CNA |
| Microsoft | Microsoft SQL Server 2019 (GDR) | 15.0.0 to before 15.0.2170.1 | 15.0.2170.1 | Patch available | CNA |
| Microsoft | Microsoft SQL Server 2022 (GDR) | 16.0.0 to before 16.0.1180.1 | 16.0.1180.1 | Patch available | CNA |
| Microsoft | Microsoft SQL Server 2022 for x64-based Systems (CU 24) | 16.0.0.0 to before 16.0.4252.3 | 16.0.4252.3 | Patch available | CNA |
| Microsoft | Microsoft SQL Server 2025 (CU 4) | 17.0.4040.1 to before 17.0.4040.1 | 17.0.4040.1 | Patch available | CNA |
| Microsoft | Microsoft SQL Server 2025 for x64-based Systems (GDR) | 17.0.1050.2 to before 17.0.1115.1 | 17.0.1115.1 | Patch available | CNA |
- Microsoft SQL Server 2016 Service Pack 3 (GDR) VendorMicrosoft Affected 13.0.0 to before 13.0.6490.1 Fixed in 13.0.6490.1 Patch available CNA
- Microsoft SQL Server 2016 Service Pack 3 Azure Connect Feature Pack VendorMicrosoft Affected 13.0.0 to before 13.0.7085.1 Fixed in 13.0.7085.1 Patch available CNA
- Microsoft SQL Server 2017 (CU 31) VendorMicrosoft Affected 14.0.0 to before 14.0.3530.2 Fixed in 14.0.3530.2 Patch available CNA
- Microsoft SQL Server 2017 (GDR) VendorMicrosoft Affected 14.0.0 to before 14.0.2110.2 Fixed in 14.0.2110.2 Patch available CNA
- Microsoft SQL Server 2019 (CU 32) VendorMicrosoft Affected 15.0.0.0 to before 15.0.4470.1 Fixed in 15.0.4470.1 Patch available CNA
- Microsoft SQL Server 2019 (GDR) VendorMicrosoft Affected 15.0.0 to before 15.0.2170.1 Fixed in 15.0.2170.1 Patch available CNA
- Microsoft SQL Server 2022 (GDR) VendorMicrosoft Affected 16.0.0 to before 16.0.1180.1 Fixed in 16.0.1180.1 Patch available CNA
- Microsoft SQL Server 2022 for x64-based Systems (CU 24) VendorMicrosoft Affected 16.0.0.0 to before 16.0.4252.3 Fixed in 16.0.4252.3 Patch available CNA
- Microsoft SQL Server 2025 (CU 4) VendorMicrosoft Affected 17.0.4040.1 to before 17.0.4040.1 Fixed in 17.0.4040.1 Patch available CNA
- Microsoft SQL Server 2025 for x64-based Systems (GDR) VendorMicrosoft Affected 17.0.1050.2 to before 17.0.1115.1 Fixed in 17.0.1115.1 Patch available CNA
CPE configurations NVD · 5
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:microsoft:sql_server_2016:*:*:*:*:*:*:x64:* | 13.0.6300.2 to before 13.0.6490.1; 13.0.7000.253 to before 13.0.7085.1 | Vulnerable | Microsoft |
| cpe:2.3:a:microsoft:sql_server_2017:*:*:*:*:*:*:x64:* | 14.0.1000.169 to before 14.0.2110.2; 14.0.3006.16 to before 14.0.3530.2 | Vulnerable | Microsoft |
| cpe:2.3:a:microsoft:sql_server_2019:*:*:*:*:*:*:x64:* | 15.0.2000.5 to before 15.0.2170.1; 15.0.4003.23 to before 15.0.4470.1 | Vulnerable | Microsoft |
| cpe:2.3:a:microsoft:sql_server_2022:*:*:*:*:*:*:x64:* | 16.0.1000.6 to before 16.0.1180.1; 16.0.4003.1 to before 16.0.4252.3 | Vulnerable | Microsoft |
| cpe:2.3:a:microsoft:sql_server_2025:*:*:*:*:*:*:x64:* | 17.0.1000.7 to before 17.0.1115.1; 17.0.4006.2 to before 17.0.4040.1 | Vulnerable | Microsoft |
- cpe:2.3:a:microsoft:sql_server_2016:*:*:*:*:*:*:x64:* Versions 13.0.6300.2 to before 13.0.6490.1; 13.0.7000.253 to before 13.0.7085.1 Vulnerable ·Microsoft
- cpe:2.3:a:microsoft:sql_server_2017:*:*:*:*:*:*:x64:* Versions 14.0.1000.169 to before 14.0.2110.2; 14.0.3006.16 to before 14.0.3530.2 Vulnerable ·Microsoft
- cpe:2.3:a:microsoft:sql_server_2019:*:*:*:*:*:*:x64:* Versions 15.0.2000.5 to before 15.0.2170.1; 15.0.4003.23 to before 15.0.4470.1 Vulnerable ·Microsoft
- cpe:2.3:a:microsoft:sql_server_2022:*:*:*:*:*:*:x64:* Versions 16.0.1000.6 to before 16.0.1180.1; 16.0.4003.1 to before 16.0.4252.3 Vulnerable ·Microsoft
- cpe:2.3:a:microsoft:sql_server_2025:*:*:*:*:*:*:x64:* Versions 17.0.1000.7 to before 17.0.1115.1; 17.0.4006.2 to before 17.0.4040.1 Vulnerable ·Microsoft
Remediation
Microsoft 10 updates
- Security Update
- Microsoft SQL Server 2025 for x64-based Systems (GDR) 17.0.1115.1
- Security Update
- Microsoft SQL Server 2022 for x64-based Systems (GDR) 16.0.1180.1
- Security Update
- Microsoft SQL Server 2019 for x64-based Systems (GDR) 15.0.2170.1
Show 7 more Microsoft updates
- Security Update
- Microsoft SQL Server 2019 for x64-based Systems (CU 32) 15.0.4470.1
- Security Update
- Microsoft SQL Server 2017 for x64-based Systems (CU 31) 14.0.3530.2
- Security Update
- Microsoft SQL Server 2017 for x64-based Systems (GDR) 14.0.2110.2
- Security Update
- Microsoft SQL Server 2022 for x64-based Systems (CU 24) 16.0.4252.3
- Security Update
- Microsoft SQL Server 2025 for x64-based Systems (CU4) 17.0.4040.1
- Security Update
- Microsoft SQL Server 2016 for x64-based Systems Service Pack 3 (GDR) 13.0.6490.1
- Security Update
- Microsoft SQL Server 2016 for x64-based Systems Service Pack 3 Azure Connect Feature Pack 13.0.7085.1
Vendor assessments
Microsoft
Microsoft's page for this CVE →
- Impact
- Remote Code Execution
- Exploited
- No
- Publicly disclosed
- No
- Exploitability
- Exploitation Less Likely
Timeline
- 2026-10-02 Threatist record created from CVE-2026-40370
- 2026-10-03 Alias added: GHSA-c4mg-2cmw-c72r
- 2026-10-25 EPSS moved to the below the 50th percentile
References
More Microsoft Sql Server 2016 vulnerabilities
- TI-2019-00798 Improper input validation in Microsoft SQL Server 2014 Service Pack 2 for 32-bit Systems KEVCVSS 3.1HIGH 8.8
- TI-2025-31689 Microsoft SQL Server Information Disclosure Vulnerability CVSS 3.1HIGH 7.5
- TI-2026-39042 Microsoft SQL Server Remote Code Execution Vulnerability CVSS 3.1CRITICAL 9.8
- TI-2026-39041 Microsoft SQL Server Remote Code Execution Vulnerability CVSS 3.1CRITICAL 9.8
- TI-2024-25283 Microsoft SQL Server Elevation of Privilege Vulnerability CVSS 3.1CRITICAL 9.8
- TI-2024-24853 Microsoft SQL Server Elevation of Privilege Vulnerability CVSS 3.1CRITICAL 9.8
Sources
- CVE-2026-40370 · CVE Program
- CVE-2026-40370 · NVD
- FIRST EPSS
- GHSA-c4mg-2cmw-c72r · GitHub Advisory Database · CC BY 4.0
- CVE-2026-40370 · Microsoft Security Update Guide
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences