Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain low-privilege SQL Server credentials
-
DeliveryConnect to SQL Server over network (TCP 1433)
-
ExploitIdentify injectable stored procedure or SQL path
-
ExecutionCraft SQL injection payload targeting privilege escalation
-
PersistExecute payload to gain elevated database privileges
-
ImpactAccess or modify data as privileged principal
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Persistence The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires a valid, authenticated SQL Server login with at minimum low-privilege access to the database instance (PR:L per CVSS vector). The attacker must identify and reach the specific injectable SQL path within the server engine, which contributes to the High attack complexity (AC:H) rating - exploitation is not a simple one-packet trigger against a default configuration. The description's qualifier 'authorized attacker' confirms that unauthenticated exploitation is not possible; an attacker must first possess valid credentials. The 'locally' qualifier in the description may limit the privilege escalation effect to the host system rather than enabling lateral movement to remote systems, though this should be verified via the MSRC advisory. Exploitation is limited by: requirement for prior credential compromise or insider access, high attack complexity implying specific triggerable conditions (likely a particular stored procedure, function, or permission path), and network accessibility to the SQL Server port (default TCP 1433). |
| Impact | The official CVSS 3.1 score of 7.5 with vector AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H conveys significant technical impact (full triad compromise) but with meaningful barriers: low-privilege authenticated access (PR:L) and high attack complexity (AC:H). One notable tension exists: the description states privilege escalation occurs 'locally,' while AV:N indicates a network attack vector - this discrepancy should be verified against the Microsoft MSRC advisory at https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-47296. It is plausible the network vector reflects that SQL connections are made over the network, while 'locally' describes the privilege elevation effect on the server host rather than physical local access. SSVC assessment (Exploitation: none, Automatable: no, Technical Impact: total) reinforces that while the potential damage ceiling is high, exploitation is neither trivial nor currently observed at scale. EPSS at 0.57% (44th percentile) aligns with SSVC - real-world mass exploitation is not imminent, but the existence of a public POC on GitHub meaningfully lowers the bar for motivated insiders or attackers who have already gained SQL Server credentials. This is a genuine risk for environments where low-privilege SQL accounts are issued broadly, or where database credentials have been compromised in a prior attack phase. |
| Exploit ScenarioDerived | An attacker who has obtained low-privilege SQL Server credentials - through phishing, credential stuffing, or lateral movement - connects to the SQL Server instance over the network and submits a crafted SQL statement targeting the vulnerable injection point. The injected payload manipulates the server-side query to execute in an elevated context, granting the attacker database owner or system administrator-level permissions without legitimate authorization. A public proof-of-concept is available at https://gist.github.com/alon710/b22bbe2f241e5aee1cd66aaa6dd091ce, lowering the technical bar for this scenario. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Aug 04, 2026
SQL injection in Microsoft SQL Server (versions 2016 through 2025) enables an authenticated attacker to escalate privileges on the database server. The flaw, tracked as CWE-89, exists within the SQL Server engine's handling of user-supplied SQL input, allowing insufficient neutralization to be leveraged for privilege elevation. Publicly available exploit code exists (GitHub gist), though CISA has not yet added this to the KEV catalog and SSVC indicates no confirmed active exploitation; EPSS sits at 0.57% (44th percentile), suggesting low but non-trivial opportunistic exploitation risk.
Earlier versions of this analysis (1)
Local privilege elevation in Microsoft SQL Server (2016 SP3 through 2025) allows an already-authenticated database user to escalate their privileges by injecting crafted special elements into an SQL command. Microsoft has released a fix and reported the flaw; there is no public exploit identified at time of analysis and it is not listed in CISA KEV. Because exploitation requires existing low-level access, the realistic threat is an insider or a compromised low-privilege account pivoting to higher database privileges.
RemediationAI
Apply the Microsoft-released patches via the MSRC advisory at https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-47296. Target patch versions per release line are: SQL Server 2016 SP3 GDR → 13.0.6500.1 or later; SQL Server 2016 SP3 Azure Connect Feature Pack → 13.0.7095.1 or later; SQL Server 2017 GDR → 14.0.2120.1 or later; SQL Server 2017 CU 31 → 14.0.3540.1 or later; SQL Server 2019 GDR → 15.0.2180.2 or later; SQL Server 2019 CU 32 → 15.0.4480.2 or later; SQL Server 2022 GDR → 16.0.1190.2 or later; SQL Server 2022 CU 25 → 16.0.4262.2 or later; SQL Server 2025 GDR → 17.0.1125.2 or later; SQL Server 2025 CU 6 → 17.0.4060.2 or later. Where patching cannot occur immediately, compensating controls should include restricting SQL Server logins to only those principals that strictly require access (minimize PR:L attack surface), auditing and revoking unnecessary EXECUTE permissions on stored procedures and extended stored procedures (which are common injection pivot points), enabling SQL Server Audit to log privilege-sensitive operations for anomaly detection, and ensuring SQL Server instances are not internet-exposed - the AC:H constraint means exploitation requires specific knowledge, making network segmentation an effective friction layer. Note that disabling features may impact applications dependent on those stored procedures.
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-89 (Improper Neutralization of Special Elements in SQL Commands) describes a failure to sanitize user-controlled input before it is incorporated into a SQL query, enabling an attacker to alter the query's logic. In this instance the injection surface resides within Microsoft SQL Server's server-side processing - not a web application layer - meaning an authenticated database-level principal can craft SQL that the engine executes with elevated context. The affected CPE strings span cpe:2.3:a:microsoft:microsoft_sql_server_2016_service_pack_3_(gdr) through cpe:2.3:a:microsoft:microsoft_sql_server_2025_for_x64-based_systems_(gdr), confirming the vulnerability is present across five major SQL Server release lines and their respective cumulative update and GDR servicing branches. The attack complexity is rated High (AC:H), indicating that exploitation requires specific conditions beyond simply having a valid connection, likely related to specific stored procedures, internal functions, or schema configurations that expose the injectable path.
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:H/PR:L/UI:N/S:U/C:H/I:H/A:H
PR:L for required authenticated SQL access; AC:H for specific triggerable injection path; AV:N as SQL connections traverse the network even when privilege impact is server-local.
Primary rating from Vendor (microsoft).
CVSS VectorNVD
Lifecycle Timeline
3DescriptionNVD
Improper neutralization of special elements used in an sql command ('sql injection') in SQL Server allows an authorized attacker to elevate privileges locally.
Executive ViewAI
Microsoft SQL Server versions 2016 through 2025 contain a SQL injection vulnerability (CVE-2026-47296) that allows authenticated database users to escalate to administrative privileges. With publicly available exploit code and a 7.5 CVSS score, this creates an immediate privilege escalation risk across organizations where database access is granted to application service accounts, contractors, or less-trusted internal users.
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
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
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
Remote code execution in Microsoft SQL Server (2016 SP3 through 2025) arises from unsafe deserialization of untrusted da
Privilege escalation via external file path control in Microsoft SQL Server affects versions 2016 through 2025, exploita
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-43967
GHSA-448r-r56x-9vhx
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB