CVE-2026-40370

published 12 May 2026 · updated 10 Aug 2026

SQL Server Remote Code Execution Vulnerability

8.8HighCVSS 8.8EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in SQL Server 13.0.6490.1, SQL Server 13.0.7085.1, SQL Server 14.0.3530.2 and 7 more.

External control of file name or path in SQL Server allows an authorized attacker to execute code over a network.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
MicrosoftSQL Server>=13.0.0 <13.0.6490.1, >=13.0.0 <13.0.7085.1, >=14.0.0 <14.0.3530.2, >=14.0.0 <14.0.2110.2, >=15.0.0.0 <15.0.4470.1, >=15.0.0 <15.0.2170.1, >=16.0.0 <16.0.1180.1, >=16.0.0.0 <16.0.4252.3, >=17.0.4040.1 <17.0.4040.1, >=17.0.1050.2 <17.0.1115.113.0.6490.1, 13.0.7085.1, 14.0.3530.2, 14.0.2110.2, 15.0.4470.1, 15.0.2170.1, 16.0.1180.1, 16.0.4252.3, 17.0.4040.1, 17.0.1115.1

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in SQL Server, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-40370 severity on Zeptric[![CVE-2026-40370](https://zeptric.io/badge/cve/CVE-2026-40370.svg)](https://zeptric.io/cve/CVE-2026-40370)