CVE-2026-40370 PUBLISHED

SQL Server Remote Code Execution Vulnerability

Assigner: microsoft
Reserved: 11.04.2026 Published: 12.05.2026 Updated: 13.05.2026

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

Metrics

CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C
CVSS Score: 8.8

Product Status

Vendor Microsoft
Product Microsoft SQL Server 2016 Service Pack 3 (GDR)
Versions
  • affected from 13.0.0 to 13.0.6490.1 (excl.)
Vendor Microsoft
Product Microsoft SQL Server 2016 Service Pack 3 Azure Connect Feature Pack
Versions
  • affected from 13.0.0 to 13.0.7085.1 (excl.)
Vendor Microsoft
Product Microsoft SQL Server 2017 (CU 31)
Versions
  • affected from 14.0.0 to 14.0.3530.2 (excl.)
Vendor Microsoft
Product Microsoft SQL Server 2017 (GDR)
Versions
  • affected from 14.0.0 to 14.0.2110.2 (excl.)
Vendor Microsoft
Product Microsoft SQL Server 2019 (CU 32)
Versions
  • affected from 15.0.0.0 to 15.0.4470.1 (excl.)
Vendor Microsoft
Product Microsoft SQL Server 2019 (GDR)
Versions
  • affected from 15.0.0 to 15.0.2170.1 (excl.)
Vendor Microsoft
Product Microsoft SQL Server 2022 (GDR)
Versions
  • affected from 16.0.0 to 16.0.1180.1 (excl.)
Vendor Microsoft
Product Microsoft SQL Server 2022 for x64-based Systems (CU 24)
Versions
  • affected from 16.0.0.0 to 16.0.4252.3 (excl.)
Vendor Microsoft
Product Microsoft SQL Server 2025 (CU 4)
Versions
  • affected from 17.0.4040.1 to 17.0.4040.1 (excl.)
Vendor Microsoft
Product Microsoft SQL Server 2025 for x64-based Systems (GDR)
Versions
  • affected from 17.0.1050.2 to 17.0.1115.1 (excl.)

References

Problem Types