CVE-2026-40370
SQL Server Remote Code Execution Vulnerability
Description
External control of file name or path in SQL Server allows an authorized attacker to execute code over a network.
INFO
Published Date :
May 12, 2026, 6:17 p.m.
Last Modified :
June 18, 2026, 5:23 p.m.
Remotely Exploit :
No
Source :
[email protected]
Affected Products
The following products are affected by CVE-2026-40370
vulnerability.
Even if cvefeed.io is aware of the exact versions of the
products
that
are
affected, the information is not represented in the table below.
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS | 134c704f-9b21-4f2e-91b3-4a467353bcc0 | |||||
| CVSS 3.1 | HIGH | f38d906d-7342-40ea-92c1-6c4a2c6478c8 | ||||
| CVSS 3.1 | HIGH | [email protected] |
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-40370.
| URL | Resource |
|---|---|
| https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-40370 | Vendor Advisory |
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-40370 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-40370
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-40370 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-40370 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
Initial Analysis by [email protected]
Jun. 18, 2026
Action Type Old Value New Value Added CWE CWE-610 Added CPE Configuration OR *cpe:2.3:a:microsoft:sql_server_2016:*:*:*:*:*:*:x64:* versions from (including) 13.0.6300.2 up to (excluding) 13.0.6490.1 *cpe:2.3:a:microsoft:sql_server_2016:*:*:*:*:*:*:x64:* versions from (including) 13.0.7000.253 up to (excluding) 13.0.7085.1 *cpe:2.3:a:microsoft:sql_server_2017:*:*:*:*:*:*:x64:* versions from (including) 14.0.1000.169 up to (excluding) 14.0.2110.2 *cpe:2.3:a:microsoft:sql_server_2017:*:*:*:*:*:*:x64:* versions from (including) 14.0.3006.16 up to (excluding) 14.0.3530.2 *cpe:2.3:a:microsoft:sql_server_2019:*:*:*:*:*:*:x64:* versions from (including) 15.0.2000.5 up to (excluding) 15.0.2170.1 *cpe:2.3:a:microsoft:sql_server_2019:*:*:*:*:*:*:x64:* versions from (including) 15.0.4003.23 up to (excluding) 15.0.4470.1 *cpe:2.3:a:microsoft:sql_server_2022:*:*:*:*:*:*:x64:* versions from (including) 16.0.1000.6 up to (excluding) 16.0.1180.1 *cpe:2.3:a:microsoft:sql_server_2022:*:*:*:*:*:*:x64:* versions from (including) 16.0.4003.1 up to (excluding) 16.0.4252.3 *cpe:2.3:a:microsoft:sql_server_2025:*:*:*:*:*:*:x64:* versions from (including) 17.0.1000.7 up to (excluding) 17.0.1115.1 *cpe:2.3:a:microsoft:sql_server_2025:*:*:*:*:*:*:x64:* versions from (including) 17.0.4006.2 up to (excluding) 17.0.4040.1 Added Reference Type Microsoft Corporation: https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-40370 Types: Vendor Advisory -
CVE Modified by [email protected]
Jun. 17, 2026
Action Type Old Value New Value Added Affected [{'vendor': 'Microsoft', 'product': 'Microsoft SQL Server 2016 Service Pack 3 (GDR)', 'versions': [{'status': 'affected', 'version': '13.0.0', 'lessThan': '13.0.6490.1', 'versionType': 'custom'}], 'platforms': ['x64-based Systems']}, {'vendor': 'Microsoft', 'product': 'Microsoft SQL Server 2016 Service Pack 3 Azure Connect Feature Pack', 'versions': [{'status': 'affected', 'version': '13.0.0', 'lessThan': '13.0.7085.1', 'versionType': 'custom'}], 'platforms': ['x64-based Systems']}, {'vendor': 'Microsoft', 'product': 'Microsoft SQL Server 2017 (CU 31)', 'versions': [{'status': 'affected', 'version': '14.0.0', 'lessThan': '14.0.3530.2', 'versionType': 'custom'}], 'platforms': ['x64-based Systems']}, {'vendor': 'Microsoft', 'product': 'Microsoft SQL Server 2017 (GDR)', 'versions': [{'status': 'affected', 'version': '14.0.0', 'lessThan': '14.0.2110.2', 'versionType': 'custom'}], 'platforms': ['x64-based Systems']}, {'vendor': 'Microsoft', 'product': 'Microsoft SQL Server 2019 (CU 32)', 'versions': [{'status': 'affected', 'version': '15.0.0.0', 'lessThan': '15.0.4470.1', 'versionType': 'custom'}], 'platforms': ['x64-based Systems']}, {'vendor': 'Microsoft', 'product': 'Microsoft SQL Server 2019 (GDR)', 'versions': [{'status': 'affected', 'version': '15.0.0', 'lessThan': '15.0.2170.1', 'versionType': 'custom'}], 'platforms': ['x64-based Systems']}, {'vendor': 'Microsoft', 'product': 'Microsoft SQL Server 2022 (GDR)', 'versions': [{'status': 'affected', 'version': '16.0.0', 'lessThan': '16.0.1180.1', 'versionType': 'custom'}], 'platforms': ['x64-based Systems']}, {'vendor': 'Microsoft', 'product': 'Microsoft SQL Server 2022 for x64-based Systems (CU 24)', 'versions': [{'status': 'affected', 'version': '16.0.0.0', 'lessThan': '16.0.4252.3', 'versionType': 'custom'}], 'platforms': ['x64-based Systems']}, {'vendor': 'Microsoft', 'product': 'Microsoft SQL Server 2025 (CU 4)', 'versions': [{'status': 'affected', 'version': '17.0.4040.1', 'lessThan': '17.0.4040.1', 'versionType': 'custom'}]}, {'vendor': 'Microsoft', 'product': 'Microsoft SQL Server 2025 for x64-based Systems (GDR)', 'versions': [{'status': 'affected', 'version': '17.0.1050.2', 'lessThan': '17.0.1115.1', 'versionType': 'custom'}], 'platforms': ['x64-based Systems']}] -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Jun. 17, 2026
Action Type Old Value New Value Added SSVC {'id': 'CVE-2026-40370', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'none'}, {'automatable': 'no'}, {'technicalImpact': 'total'}], 'version': '2.0.3', 'timestamp': '2026-05-13T03:57:25.195979Z'} -
New CVE Received by [email protected]
May. 12, 2026
Action Type Old Value New Value Added Description External control of file name or path in SQL Server allows an authorized attacker to execute code over a network. Added CVSS V3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H Added CWE CWE-73 Added Reference https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-40370