CVE-2026-40370: Microsoft SQL Server 2016

High severity, CVSS 8.8. EPSS: 1% chance of exploitation in the next 30 days.

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

Affected products

  • Microsoft SQL Server 2016: from 13.0.6300.2, before 13.0.6490.1 (fixed in 13.0.6490.1); from 13.0.7000.253, before 13.0.7085.1 (fixed in 13.0.7085.1)
  • Microsoft SQL Server 2017: from 14.0.1000.169, before 14.0.2110.2 (fixed in 14.0.2110.2); from 14.0.3006.16, before 14.0.3530.2 (fixed in 14.0.3530.2)
  • Microsoft SQL Server 2019: from 15.0.2000.5, before 15.0.2170.1 (fixed in 15.0.2170.1); from 15.0.4003.23, before 15.0.4470.1 (fixed in 15.0.4470.1)
  • Microsoft SQL Server 2022: from 16.0.1000.6, before 16.0.1180.1 (fixed in 16.0.1180.1); from 16.0.4003.1, before 16.0.4252.3 (fixed in 16.0.4252.3)
  • Microsoft SQL Server 2025: from 17.0.1000.7, before 17.0.1115.1 (fixed in 17.0.1115.1); from 17.0.4006.2, before 17.0.4040.1 (fixed in 17.0.4040.1)

Published 2026-05-12. Last modified 2026-06-18.