CVE-2026-40370

SQL Server Remote Code Execution Vulnerability

State
Published
Severity
8.8 High
Published
May 12, 2026
Updated
Aug 10, 2026
Reserved
Apr 11, 2026

Read the record on cve.org

Description

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

Scores

CVSSScoreVectorSource
3.18.8 HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:Cmicrosoft

Weaknesses

  • CWE-73 External Control of File Name or Path

Affected Products

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

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.