Skip to content

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.

PackageAffectedFixed inStatus
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

ProductAffected versionsFixed 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
ProductAffected versionsFixed 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