Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain low-privilege SQL Server credential
-
DeliveryConnect to SQL Server over network (TCP 1433)
-
ExploitIssue crafted T-SQL file-path command
-
ExecutionCWE-73 path control bypasses directory restrictions
-
PersistAccess or overwrite sensitive OS-level file
-
ImpactEscalate to elevated OS or sysadmin privileges
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 a valid, authenticated SQL Server login with at least low-privilege access (mapped to the PR:L CVSS metric and the description's 'authorized attacker' qualifier). The attacker must be able to invoke file-referencing T-SQL commands such as BULK INSERT, OPENROWSET, or BACKUP/RESTORE - meaning the login must have the relevant permissions (e.g., ADMINISTER BULK OPERATIONS or BULKADMIN role) or the attack surface must be exposed through another SQL Server feature. The description specifies privilege escalation is 'local,' meaning the escalation occurs on the host system running SQL Server rather than against a remote target. The SSVC designation of Automatable: no implies that the attack path requires steps that cannot be trivially automated or scripted into a single unauthenticated payload. Exploitation is limited by the need for a valid SQL Server credential, the specific permissions required to invoke file I/O operations, and the non-automatable nature confirmed by SSVC. There is an unresolved ambiguity between the CVSS AV:N vector and the 'locally' qualifier in the description - defenders should confirm with the Microsoft advisory whether this is exploitable by remote SQL sessions or only from a local host session. |
| Impact | The official CVSS 3.1 score of 8.8 (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H) reflects a high-severity, low-complexity attack requiring only a low-privilege SQL Server credential. However, real-world risk must be contextualized against the full signal set. EPSS at 0.24% (15th percentile) indicates that current exploitation probability is low despite the high CVSS - consistent with SSVC reporting Exploitation: none and Automatable: no. The 'Automatable: no' designation suggests the exploitation path requires human judgment or interaction beyond simply sending a single request. SSVC does rate Technical Impact as total, confirming that a successful exploit yields complete system compromise, so the risk is high if an attacker is specifically targeting a SQL Server instance. The vulnerability is not in CISA KEV, and no public POC has been identified at time of analysis. One signal inconsistency to flag: the CVSS AV:N vector versus the description's 'locally' qualifier on privilege escalation - defenders should verify with the Microsoft advisory whether this is exploitable by remote authenticated SQL users or requires an existing local session on the database host. The tags include 'Information Disclosure' which is not reflected in the primary description of privilege escalation; this may indicate a secondary impact pathway or a tagging artifact. |
| Exploit ScenarioDerived | An attacker with a low-privilege SQL Server login - such as a developer, application service account, or compromised credential obtained via phishing - connects to a vulnerable SQL Server instance over the network and issues a T-SQL command (e.g., a BULK INSERT or BACKUP statement) with a crafted file path argument. The CWE-73 flaw allows the path to escape the intended directory scope, directing a read or write operation to a sensitive OS-level file, which SQL Server processes under its service account context. The attacker leverages this file access to escalate from a database-level principal to OS-level or sysadmin-equivalent privileges on the host. No public exploit code has been identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Aug 04, 2026
Privilege escalation via external file path control in Microsoft SQL Server affects versions 2016 through 2025, exploitable by any low-privilege authenticated SQL Server user. CWE-73 (External Control of File Name or Path) allows an authorized attacker to supply or manipulate file path parameters - likely through SQL operations such as BULK INSERT, BACKUP/RESTORE, or FILESTREAM commands - to escape intended access boundaries and elevate local operating system or SQL Server privileges. No public exploit code has been identified and the vulnerability is not listed in the CISA KEV catalog; however, the SSVC framework rates Technical Impact as total, indicating full system compromise is achievable upon successful exploitation. The EPSS score of 0.24% (15th percentile) reflects low current exploitation probability.
Earlier versions of this analysis (1)
Local privilege elevation in Microsoft SQL Server (2016 SP3 through 2025) allows an already-authenticated database user to gain higher privileges on the host by controlling a file name or path used by the server engine. The CVSS 3.1 base score is 7.8 with high impact to confidentiality, integrity, and availability, and Microsoft has released a patch. There is no public exploit identified at time of analysis, and the CVE is not in CISA KEV.
RemediationAI
The primary fix is to apply Microsoft's released cumulative updates or GDR patches for each affected branch, as documented in the Microsoft Security Response Center advisory at https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-55002. Specific fixed versions are: SQL Server 2016 SP3 GDR update to 13.0.6500.1 or later; SQL Server 2016 SP3 Azure Connect Feature Pack to 13.0.7095.1 or later; SQL Server 2017 CU 31 to 14.0.3540.1 or later; SQL Server 2017 GDR to 14.0.2120.1 or later; SQL Server 2019 CU 32 to 15.0.4480.2 or later; SQL Server 2019 GDR to 15.0.2180.2 or later; SQL Server 2022 CU 25 to 16.0.4262.2 or later; SQL Server 2022 GDR to 16.0.1190.2 or later; SQL Server 2025 CU 6 to 17.0.4060.2 or later; and SQL Server 2025 GDR to 17.0.1125.2 or later. Until patching is complete, reduce risk by auditing and restricting SQL logins that have access to file I/O operations - specifically, revoke or restrict BULKADMIN role membership and ADMINISTER BULK OPERATIONS permission for accounts that do not require it, as these are common enablers of file path manipulation in SQL Server. Additionally, restrict SQL Server service account privileges to the minimum required OS permissions (avoid LocalSystem or high-privilege accounts), which limits the escalation ceiling even if the vulnerability is triggered. Ensure network access to SQL Server ports (1433/TCP by default) is restricted to authorized hosts via firewall rules to reduce the network attack surface.
Affected VersionsENISA
Affected Packages
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
CWE-73 (External Control of File Name or Path) describes a class of vulnerability where an application constructs file paths using externally-controlled input without sufficient validation, enabling attackers to traverse directory boundaries or redirect file operations to unintended locations. In the Microsoft SQL Server context, this is likely triggered through privileged file I/O operations accessible to low-privilege SQL principals - candidates include T-SQL constructs like BULK INSERT, OPENROWSET with file source, BACKUP TO, RESTORE FROM, or xp_cmdshell-adjacent functionality. The attacker-controlled path may redirect read or write operations to sensitive OS-level files, enabling privilege escalation from a SQL Server login to a higher OS or sysadmin role. Affected products span five major release branches per CPE: SQL Server 2016 SP3 (GDR and Azure Connect Feature Pack), 2017 (CU 31 and GDR), 2019 (CU 32 and GDR), 2022 (GDR and CU 25), and 2025 (CU 6 and GDR). There is a notable tension between the CVSS vector (AV:N, implying network-reachable attack surface) and the description's use of 'locally' to describe privilege escalation - this likely means the escalation effect is on the local host system, not that the attacker must be physically present, since SQL Server is inherently a network-accessible service.
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
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
PR:L confirmed by 'authorized attacker' language; AV:N retained as SQL Server is network-accessible, with local escalation being the impact, not the vector.
Primary rating from Vendor (microsoft).
CVSS VectorNVD
Lifecycle Timeline
3DescriptionNVD
External control of file name or path in SQL Server allows an authorized attacker to elevate privileges locally.
Executive ViewAI
Microsoft SQL Server instances (2016-2025) in your environment face a privilege escalation risk allowing internal database users to gain unauthorized system-level access through file path manipulation in database operations. This represents a critical insider threat vector; successful exploitation could compromise data integrity, enable system access, or disrupt services. Immediate patching is necessary to maintain database access controls and prevent privilege abuse.
Apply vendor patch.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Privilege elevation in Microsoft SQL Server (2016 SP3 through 2025) allows an authenticated attacker to inject crafted S
Remote code execution in Microsoft SQL Server (2016 SP3 through 2025) lets an authenticated attacker with low-privilege
SQL injection in Microsoft SQL Server (versions 2016 through 2025) enables an authenticated attacker to escalate privile
Remote code execution in Microsoft SQL Server (2016 SP3 through 2025) arises from unsafe deserialization of untrusted da
Privilege escalation in Microsoft SQL Server lets an authenticated, low-privileged database user execute crafted SQL tha
Local privilege escalation in Microsoft SQL Server allows an authenticated low-privileged user with local access to expl
EUVD-2026-44033
GHSA-84xv-35h8-r47j
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB