Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain low-privilege SQL Server credentials
-
DeliveryGain local access to SQL Server host
-
ExploitTrigger UAF race condition via crafted query
-
ExecutionCorrupt freed memory with controlled data
-
PersistExecute arbitrary code as elevated SQL Server process user
-
ImpactAchieve local privilege escalation
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Memory lifecycle management
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires: (1) local access to the system running SQL Server (AV:L - remote network exploitation is not possible); (2) a valid SQL Server login with at minimum low-level database privileges (PR:L - unauthenticated access does not satisfy this); (3) successful exploitation of a high-complexity condition such as a heap race (AC:H - a simple, reliable one-shot exploit is unlikely). Exploitation is limited by: the requirement for an existing authenticated SQL Server session, the need to be operating locally on the host (not via a remote SQL connection to a separate server), and the race-condition complexity that reduces reliability. No user interaction from a victim is required (UI:N). There is no indication this affects only specific non-default SQL Server configurations. |
| Impact | The CVSS 7.0 base score reflects real-world constraints: AV:L requires the attacker to already have local access to the system running SQL Server, PR:L requires an authenticated SQL Server login, and AC:H indicates exploitation is not straightforward - a race condition or specific heap state must be achieved. These factors significantly limit opportunistic exploitation. No KEV listing and no public exploit code further reduce immediate operational risk. Despite the C:H/I:H/A:H impact metrics, the local-only, high-complexity attack path means this is not a remotely exploitable, wormable vulnerability. The primary risk scenario is insider threat or post-compromise lateral movement within environments where SQL Server runs on shared multi-tenant infrastructure. EPSS data was not provided; given the AC:H and local-only vector, exploitation probability is likely low to moderate. Patch prioritization should be driven by whether untrusted or low-privileged users have local OS or SQL Server access. |
| Exploit ScenarioDerived | An attacker who has obtained a low-privilege SQL Server login on a target server - whether through credential theft, brute force, or insider access - crafts specific queries or API calls designed to trigger a race condition in SQL Server's memory allocator, causing freed memory to be reused in a controlled way. By repeating the trigger until the heap layout is favorable, the attacker achieves arbitrary code execution within the SQL Server process and elevates their privileges. No public proof-of-concept code has been identified, making this scenario more likely in the context of a sophisticated insider threat or post-breach privilege escalation than opportunistic attack. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 08, 2026
Local privilege escalation in Microsoft SQL Server affects versions 2017 through 2025 via a use-after-free memory corruption flaw exploitable by an authenticated low-privilege user. An attacker with existing local access and SQL Server login credentials can trigger the UAF condition to achieve full C:H/I:H/A:H impact, effectively gaining elevated privileges on the host. No public exploit code has been identified at time of analysis, and Microsoft has released patches across all affected CU and GDR servicing channels.
RemediationAI
Apply the security updates released by Microsoft across all affected SQL Server versions and servicing channels. For SQL Server 2017, update to CU31 build 14.0.3550.4 or later, or GDR build 14.0.2130.4 or later. For SQL Server 2019, update to CU32 build 15.0.4490.9 or later, or GDR build 15.0.2190.7 or later. For SQL Server 2022, update to CU26 build 16.0.4275.2 or later, or GDR build 16.0.1200.5 or later. For SQL Server 2025, update to CU8 build 17.0.4085.5 or later, or GDR build 17.0.1135.8 or later. Full advisory and update packages are available at https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-77485. As a compensating control where immediate patching is not feasible, restrict SQL Server logins to only trusted, explicitly authorized users and enforce the principle of least privilege; remove unnecessary local OS-level access to the SQL Server host to reduce the local attack surface.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 8 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-416 (Use After Free) describes a memory corruption class where a program continues to reference a memory region after it has been freed, potentially allowing an attacker to control what data occupies that region and redirect execution flow. Within SQL Server's query processing or internal memory management subsystem, a low-privilege authenticated user can trigger conditions that cause previously freed memory to be dereferenced. The CVSS AC:H rating indicates a race condition or specific triggering precondition is required - typical of UAF exploits that depend on heap layout manipulation. Affected products span the GDR (General Distribution Release, security-only patches) and CU (Cumulative Update) servicing branches for SQL Server 2017 (14.x), 2019 (15.x), 2022 (16.x), and 2025 (17.x).
Know when Sql Server 2017 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:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Local-only access (AV:L), authenticated low-privilege user required (PR:L), race condition complexity (AC:H), scope unchanged as escalation stays within SQL Server process (S:U).
Primary rating from Vendor (microsoft).
CVSS VectorVendor: microsoft
Lifecycle Timeline
2DescriptionCVE.org
Use after free in SQL Server allows an authorized attacker to elevate privileges locally.
Executive ViewAI
Microsoft SQL Server 2017 through 2025 contains a local privilege escalation vulnerability that allows authenticated database users to elevate to system-level administrative privileges. Any organization running these SQL Server versions faces the risk that legitimate database users or compromised accounts can gain full control over the database server and underlying infrastructure, threatening data confidentiality, integrity, and availability.
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
Privilege escalation occurs when an attacker leverages flaws in access control mechanisms to gain permissions beyond what they were originally granted.
Use-after-free vulnerabilities occur when a program continues to access memory through a pointer after that memory has been deallocated.
Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
More in Sql Server 2017
View allSQL Server 2016-2025 contains an improper access control flaw that allows authenticated network attackers to escalate pr
Heap-based buffer overflow in Microsoft SQL Server 2017, 2019, 2022, and 2025 (x64) can be triggered over the network an
Microsoft SQL Server Elevation of Privilege Vulnerability. Rated critical severity (CVSS 9.8), this vulnerability is rem
Microsoft SQL Server Elevation of Privilege Vulnerability. Rated critical severity (CVSS 9.8), this vulnerability is rem
Heap-based buffer overflow in Microsoft SQL Server 2017 and 2019 enables unauthenticated network attackers to execute ar
SQL injection in Microsoft SQL Server enables a low-privileged authenticated attacker to escalate database privileges ov
Privilege escalation in Microsoft SQL Server 2017 through 2025 allows any low-privileged authenticated database user to
Heap-based buffer overflow in Microsoft SQL Server 2017 through 2025 enables an authenticated low-privilege network atta
Remote code execution is possible in Microsoft SQL Server 2017 through 2025 via a heap-based buffer overflow (CWE-122) t
SQL injection in Microsoft SQL Server (versions 2017 through 2025) enables a network-authenticated low-privilege attacke
Heap-based buffer overflow in Microsoft SQL Server (versions 2017 through 2025) enables any authenticated network attack
Remote code execution in Microsoft SQL Server affects versions 2017 through 2025 via an integer overflow that triggers a
EUVD-2026-73787
GHSA-969q-58jf-4f5x
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB