Skip to main content
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain low-privilege SQL login
  2. Delivery
    Connect to SQL Server over network
  3. Exploit
    Invoke feature with controlled file path
  4. Execution
    Redirect path to attacker-controlled location
  5. Persist
    Execute code as service account
  6. Impact
    Full compromise of database host

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V5 - File Handling File name/path control
Exploitation Conditions

Exploitation requires an authenticated SQL Server session at low privilege (CVSS PR:L) reachable over the network (AV:N), with no user interaction (UI:N) and low complexity (AC:L). The attacker must be able to reach a SQL Server feature that constructs a server-side file path from attacker-controlled input (CWE-73 external control of file name/path) - such as a path parameter in a file-handling database operation. Limiting factors: the attacker must already possess valid database credentials or a foothold via an application account, so unauthenticated internet exploitation is NOT possible; the target must be one of the listed unpatched 2016 SP3 / 2017 / 2019 / 2022 / 2025 builds; and reaching the vulnerable code path depends on the attacker's login having permission to invoke the affected file-path feature.

Impact

The signals are mixed and warrant a measured priority. CVSS 3.1 (AV:N/AC:L/PR:L/UI:N, C:H/I:H/A:H = 8.8) indicates network-reachable exploitation with low attacker complexity and no user interaction, but crucially PR:L means the attacker must already hold authenticated, low-privilege access to the SQL Server - this is not an unauthenticated internet-facing bug. SSVC reinforces a lower operational urgency: Exploitation is 'none' (no observed active exploitation), Automatable is 'no', while Technical Impact is 'total'. EPSS is very low (0.06%, 20th percentile) and the CVE is NOT on CISA KEV, so despite publicly available exploit code, there is no evidence of widespread or automated exploitation. The realistic risk is elevated for environments where lower-privileged users, application service accounts, or multi-tenant databases can reach the SQL instance, and lower for well-segmented instances with tightly controlled logins. Note a minor conflict: the vendor Tags label this 'Information Disclosure', yet the CVSS and description describe network code execution with full CIA impact - the CVSS/description take precedence, but verify the exact impact with the Microsoft advisory.

Exploit ScenarioDerived

An attacker who has obtained a low-privileged SQL Server login - for example through a compromised application service account or credential reuse - connects over the network and invokes a database operation whose file name/path parameter they control, steering it to an attacker-influenced location to write or execute code in the service account's context. Because publicly available exploit code exists and no user interaction is required, a knowledgeable attacker with valid credentials could operationalize this quickly, though full code execution here is a targeted, not mass-scannable, action (SSVC Automatable: no).

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 23, 2026

Remote code execution in Microsoft SQL Server (2016 SP3 through 2025) lets an authenticated attacker with low-privilege database access run arbitrary code on the server via external control of a file name or path (CWE-73). The CVSS 3.1 base score is 8.8 with high impact to confidentiality, integrity, and availability; publicly available exploit code exists, though the flaw is not on CISA KEV and EPSS remains very low (0.06%, 20th percentile), indicating minimal observed exploitation to date. Microsoft has released patched builds across all affected branches.

RemediationAI

Apply the Microsoft security update for your servicing branch to reach the fixed build: SQL Server 2016 SP3 GDR 13.0.6490.1 (Azure Connect Feature Pack 13.0.7085.1), 2017 GDR 14.0.2110.2 or CU 31 14.0.3530.2, 2019 GDR 15.0.2170.1 or CU 32 15.0.4470.1, 2022 GDR 16.0.1180.1 or CU 24 16.0.4252.3, and 2025 GDR 17.0.1115.1 or CU 4 (see advisory). Obtain exact packages from the Microsoft MSRC Update Guide at https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-40370. Because exploitation requires an authenticated low-privilege login (PR:L), until patching is complete reduce exposure by auditing and removing unnecessary database logins, enforcing least-privilege so application accounts cannot invoke file-path-dependent features, and network-restricting the SQL listener (TCP 1433 or your configured port) to trusted application hosts via firewall/segmentation - trade-off: tighter network ACLs may break legitimate remote clients and require an allowlist. Enable SQL auditing/monitoring on file-related operations to detect abuse in the interim. Do not disable core file features (backup/restore, bulk operations) blindly, as this can break maintenance jobs.

Affected VersionsENISA

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

Affected Packages

euvd microsoft_sql_server_2016_service_pack_3_azure_connect_feature_pack fix: 13.0.7085.1
euvd microsoft_sql_server_2016_service_pack_3_gdr fix: 13.0.6490.1
euvd microsoft_sql_server_2017_cu_31 fix: 14.0.3530.2
euvd microsoft_sql_server_2017_gdr fix: 14.0.2110.2
euvd microsoft_sql_server_2019_cu_32 fix: 15.0.4470.1
euvd microsoft_sql_server_2019_gdr fix: 15.0.2170.1
euvd microsoft_sql_server_2022_for_x64_based_systems_cu_24 fix: 16.0.4252.3
euvd microsoft_sql_server_2022_gdr fix: 16.0.1180.1
euvd microsoft_sql_server_2025_cu_4 fix: 17.0.4040.1
euvd microsoft_sql_server_2025_for_x64_based_systems_gdr fix: 17.0.1115.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 10 packages in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability is a CWE-73 (External Control of File Name or Path) weakness in Microsoft SQL Server, a widely deployed relational database engine. Affected components span the SQL Server 2016 Service Pack 3 (GDR and Azure Connect Feature Pack), 2017 (GDR/CU 31), 2019 (GDR/CU 32), 2022 (GDR/CU 24), and 2025 (GDR/CU 4) product lines per the provided CPE strings (cpe:2.3:a:microsoft:microsoft_sql_server_*). CWE-73 arises when an application uses attacker-influenced input to construct a file path without adequate validation or canonicalization; in a database engine this typically manifests through features that read or write server-side files (e.g., backup/restore paths, bulk import/export, or extensibility hooks). Because SQL Server's file operations execute in the context of the database service account, controlling the path enables reaching or overwriting files that lead to code execution over the network.

Know when Microsoft Sql Server 2016 Service Pack 3 Gdr gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (microsoft) PRIMARY 8.8 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CIRCL (temporal) 7.7 HIGH
vuln.today AI 8.8 HIGH

Network-reachable code execution requiring an existing low-privilege SQL login (PR:L), no user interaction, low complexity, yielding full CIA impact within the unchanged service scope.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (microsoft).

CVSS VectorVendor: microsoft

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

DescriptionCVE.org

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

Executive ViewAI

Why It Matters

Microsoft SQL Server versions 2016 SP3 through 2025 contain a high-severity remote code execution vulnerability (CVE-2026-40370) that allows authenticated database users to execute arbitrary code on the server. While publicly available exploit code exists, observed exploitation remains minimal, and patches are available across all affected versions, enabling prompt risk mitigation.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.1%
Top 80% exploitable
Prevalence
High
core enterprise database deployed across most Microsoft-centric organizations
Vendor Action
See Below
Required. The vulnerability documented by this CVE requires customer action to resolve.
Vendor Status
Publicly Disclosed:No
Exploited:No
Latest Software Release:Exploitation Less Likely
Exploit
POC
Public exploit code exists
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment MSRC GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

64
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy