CVE-2026-40370 Details
Description
External control of file name or path in SQL Server allows an authorized attacker to execute code over a network.
A remote code execution vulnerability has been identified in Microsoft SQL Server. This issue arises from external control of file names or paths, allowing an authorized attacker to execute code over the network. The vulnerability affects several versions of SQL Server, including 2019, 2022, 2017, and 2016, with specific update requirements for each version.
Users can apply the security update for their specific version of SQL Server. Security update details and download links are available in the Microsoft Security Update Guide. Instructions for determining the correct update to apply are also provided in the update guide.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed May 13, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-40370 | [email protected] | Vendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-610 | Externally Controlled Reference to a Resource in Another Sphere | [email protected] |
| CWE-73 | External Control of File Name or Path | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| microsoft sql server 2016 | >= 13.0.6300.2, < 13.0.6490.1 >= 13.0.7000.253, < 13.0.7085.1 |
CPE
Remediation
| |
| microsoft sql server 2017 | >= 14.0.1000.169, < 14.0.2110.2 >= 14.0.3006.16, < 14.0.3530.2 |
CPE
Remediation
| |
| microsoft sql server 2019 | >= 15.0.2000.5, < 15.0.2170.1 >= 15.0.4003.23, < 15.0.4470.1 |
CPE
Remediation
| |
| microsoft sql server 2022 | >= 16.0.1000.6, < 16.0.1180.1 >= 16.0.4003.1, < 16.0.4252.3 |
CPE
Remediation
| |
| microsoft sql server 2025 | >= 17.0.1000.7, < 17.0.1115.1 >= 17.0.4006.2, < 17.0.4040.1 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 18, 2026 | Initial Analysis | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| May 12, 2026 | New CVE Received | [email protected] |