Home / Microsoft / Microsoft SQL Server 2016 Service Pack 3 (GDR) / CVE-2026-40370
CVE-2026-40370: is it exploited, and which versions of Microsoft SQL Server 2016 Service Pack 3 (GDR) are affected and fixed?
CVE-2026-40370 is an external Control of File Name or Path vulnerability in Microsoft SQL Server 2016 Service Pack 3 (GDR). It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 13:38 UTC). Affected: Microsoft SQL Server 2016 Service Pack 3 (GDR) from 13.0.0 before 13.0.6490.1, Microsoft SQL Server 2016 Service Pack 3 Azure Connect Feature Pack from 13.0.0 before 13.0.7085.1, Microsoft SQL Server 2017 (CU 31) from 14.0.0 before 14.0.3530.2 and 7 more (CVE record by microsoft). Fixed in 13.0.6490.1, 13.0.7085.1, 14.0.3530.2, 14.0.2110.2 and 2 more (CVE record by microsoft). Severity: High (8.8, CVSS 3.1, from microsoft).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 13:38 UTC, CVE record November 30, 2026, 17:36 UTC and NVD November 19, 2026, 07:11 UTC.
What is CVE-2026-40370?
SQL Server Remote Code Execution Vulnerability
External control of file name or path in SQL Server allows an authorized attacker to execute code over a network.
From the CVE record by microsoft, last updated November 30, 2026, 17:32 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| Microsoft | Microsoft SQL Server 2016 Service Pack 3 (GDR) x64-based Systems | from 13.0.0 before 13.0.6490.1 | 13.0.6490.1 |
| Microsoft | Microsoft SQL Server 2016 Service Pack 3 Azure Connect Feature Pack x64-based Systems | from 13.0.0 before 13.0.7085.1 | 13.0.7085.1 |
| Microsoft | Microsoft SQL Server 2017 (CU 31) x64-based Systems | from 14.0.0 before 14.0.3530.2 | 14.0.3530.2 |
| Microsoft | Microsoft SQL Server 2017 (GDR) x64-based Systems | from 14.0.0 before 14.0.2110.2 | 14.0.2110.2 |
| Microsoft | Microsoft SQL Server 2019 (CU 32) x64-based Systems | from 15.0.0.0 before 15.0.4470.1 | 15.0.4470.1 |
| Microsoft | Microsoft SQL Server 2019 (GDR) x64-based Systems | from 15.0.0 before 15.0.2170.1 | 15.0.2170.1 |
| Microsoft | Microsoft SQL Server 2022 (GDR) x64-based Systems | from 16.0.0 before 16.0.1180.1 | 16.0.1180.1 |
| Microsoft | Microsoft SQL Server 2022 for x64-based Systems (CU 24) x64-based Systems | from 16.0.0.0 before 16.0.4252.3 | 16.0.4252.3 |
| Microsoft | Microsoft SQL Server 2025 (CU 4) | from 17.0.4040.1 before 17.0.4040.1 | 17.0.4040.1 |
| Microsoft | Microsoft SQL Server 2025 for x64-based Systems (GDR) x64-based Systems | from 17.0.1050.2 before 17.0.1115.1 | 17.0.1115.1 |
As the CVE record by microsoft states it, last updated November 30, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| microsoft | sql server 2016 | from 13.0.6300.2 before 13.0.6490.1 | application |
| microsoft | sql server 2016 | from 13.0.7000.253 before 13.0.7085.1 | application |
| microsoft | sql server 2017 | from 14.0.1000.169 before 14.0.2110.2 | application |
| microsoft | sql server 2017 | from 14.0.3006.16 before 14.0.3530.2 | application |
| microsoft | sql server 2019 | from 15.0.2000.5 before 15.0.2170.1 | application |
| microsoft | sql server 2019 | from 15.0.4003.23 before 15.0.4470.1 | application |
| microsoft | sql server 2022 | from 16.0.1000.6 before 16.0.1180.1 | application |
| microsoft | sql server 2022 | from 16.0.4003.1 before 16.0.4252.3 | application |
| microsoft | sql server 2025 | from 17.0.1000.7 before 17.0.1115.1 | application |
| microsoft | sql server 2025 | from 17.0.4006.2 before 17.0.4040.1 | application |
NVD analysis (status Analyzed), last modified October 26, 2026, 18:10 UTC.
How severe is CVE-2026-40370?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 8.8 | CVSS 3.1 | 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 | microsoft |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2026-40370 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: total (CISA ADP, May 13, 2026)
- EPSS
- 0.56% probability of exploitation activity in the next 30 days, percentile 47.7 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-73 External Control of File Name or Path
- CWE-610 Externally Controlled Reference to a Resource in Another Sphere
Where are the vendor advisories and references?
- SQL Server Remote Code Execution Vulnerability vendor-advisory, patch
When was it published, and where is the official record?
- Reserved
- April 11, 2026
- Published
- May 12, 2026, 16:59 UTC
- CVE record updated
- November 30, 2026, 17:32 UTC by microsoft
- NVD
- Analyzed, last modified October 26, 2026, 18:10 UTC
- Last checked
- CVE list November 30, 2026, 17:36 UTC; NVD November 19, 2026, 07:11 UTC; KEV December 3, 2026, 13:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect Microsoft SQL Server 2016 Service Pack 3 (GDR)?
- Jul 14, 2026CVE-2026-47295 Microsoft SQL Server 2016 Service Pack 3 (GDR): SQL injection
- Jul 14, 2026CVE-2026-55002 Microsoft SQL Server 2016 Service Pack 3 (GDR): external Control of File Name or Path
- Jul 14, 2026CVE-2026-54118 Microsoft SQL Server 2016 Service Pack 3 (GDR): deserialization of untrusted data
- Jul 14, 2026CVE-2026-47296 Microsoft SQL Server 2016 Service Pack 3 (GDR): SQL injection
- Apr 14, 2026CVE-2026-32176 Microsoft SQL Server 2016 Service Pack 3 (GDR): SQL injection
- Apr 14, 2026CVE-2026-32167 Microsoft SQL Server 2016 Service Pack 3 (GDR): SQL injection
- Mar 10, 2026CVE-2026-26115 Microsoft SQL Server 2016 Service Pack 3 (GDR): improper Validation of Specified Type of Input
- Mar 10, 2026CVE-2026-21262 Microsoft SQL Server 2016 Service Pack 3 (GDR): improper access control
Every CVE in Microsoft SQL Server 2016 Service Pack 3 (GDR)
Questions about CVE-2026-40370
Is CVE-2026-40370 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 13:38 UTC. FIRST's EPSS gives it a 0.56% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Microsoft SQL Server 2016 Service Pack 3 (GDR) are affected by CVE-2026-40370?
Microsoft SQL Server 2016 Service Pack 3 (GDR) from 13.0.0 before 13.0.6490.1, Microsoft SQL Server 2016 Service Pack 3 Azure Connect Feature Pack from 13.0.0 before 13.0.7085.1, Microsoft SQL Server 2017 (CU 31) from 14.0.0 before 14.0.3530.2, Microsoft SQL Server 2017 (GDR) from 14.0.0 before 14.0.2110.2, Microsoft SQL Server 2019 (CU 32) from 15.0.0.0 before 15.0.4470.1, Microsoft SQL Server 2019 (GDR) from 15.0.0 before 15.0.2170.1 and 4 more, per the CVE record by microsoft. The tables above give every range the sources list.
Which version fixes CVE-2026-40370?
13.0.6490.1, 13.0.7085.1, 14.0.3530.2, 14.0.2110.2, 15.0.4470.1 and 15.0.2170.1, per the CVE record by microsoft. Check the vendor's advisory before you rely on it.
How severe is CVE-2026-40370?
High (8.8, CVSS 3.1, from microsoft). The severity table above shows each score with its source.
Where is the official record of CVE-2026-40370?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.