Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAcquire valid SQL Server credential
-
DeliveryEstablish authenticated network connection on TCP 1433
-
ExploitSend crafted query triggering use-after-free
-
ExecutionCorrupt heap to control code execution
-
ImpactExecute arbitrary code as SQL Server service account
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 a valid SQL Server login credential - any authenticated database user account suffices, including low-privileged application accounts. No special database roles (such as sysadmin) are required based on PR:L in the CVSS vector. The attacker must have network access to the SQL Server's TCP listener (default port 1433 or named-pipe equivalent). No special non-default configuration or feature enablement is indicated - the vulnerability exists within core SQL Server functionality accessible to any authenticated session. Limiting factors include: the need for at least one valid credential, and network-layer accessibility to the SQL Server instance. Environments using Windows Authentication with Kerberos and network-level firewall segmentation reduce exposure, but do not eliminate it if authenticated sessions are possible from attacker-controlled hosts. |
| Impact | The CVSS 3.1 vector AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H yields a base score of 8.8, reflecting the primary risk correctly: network-reachable exploitation requires only a valid SQL Server credential (PR:L), which is attainable through credential theft, brute force, or insider threat. AC:L indicates the exploit does not require race conditions or special timing. The full C:H/I:H/A:H impact triad means successful exploitation yields full database compromise, data exfiltration capability, and potential denial of service from process crash. No public exploit code has been identified at time of analysis, and EPSS data is not present in the source intelligence, limiting probabilistic assessment. However, SQL Server is a high-value enterprise target and UAF primitives in mature software are historically weaponizable given sufficient research effort. The 'Denial Of Service' tag in the source metadata understates the impact - the description explicitly states code execution, not just availability loss. Real-world risk is elevated by the breadth of affected versions (four major releases, both servicing channels) and the low privilege barrier. |
| Exploit ScenarioDerived | An attacker who has obtained a low-privileged SQL Server account - through credential phishing, password spray against the SQL Server listener, or compromising an application service account - sends a specially crafted query or connection sequence over TCP port 1433 that triggers a use-after-free condition in the SQL Server engine. The resulting heap corruption allows the attacker to redirect code execution within the SQL Server process, achieving full read/write access to the database and potentially executing OS-level commands depending on the SQL Server service account's privileges. No public proof-of-concept code has been identified at time of analysis, so practical exploitation likely requires meaningful reverse-engineering effort. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 08, 2026
Use-after-free memory corruption in Microsoft SQL Server enables a network-authenticated low-privileged attacker to achieve arbitrary code execution with full confidentiality, integrity, and availability impact. Affected versions span all actively serviced SQL Server releases from 2017 through 2025, across both Cumulative Update (CU) and General Distribution Release (GDR) servicing branches. No public exploit or CISA KEV listing has been identified at time of analysis, but the low authentication barrier (any valid SQL Server login) and network accessibility make this a high-priority patching target in enterprise environments.
RemediationAI
Apply the vendor-released patches via the Microsoft Update Catalog or SQL Server Update Center: upgrade SQL Server 2017 CU31 to 14.0.3550.4 or later, SQL Server 2017 GDR to 14.0.2130.4 or later; upgrade SQL Server 2019 CU32 to 15.0.4490.9 or later, SQL Server 2019 GDR to 15.0.2190.7 or later; upgrade SQL Server 2022 CU26 to 16.0.4275.2 or later, SQL Server 2022 GDR to 16.0.1200.5 or later; upgrade SQL Server 2025 CU8 to 17.0.4085.5 or later, SQL Server 2025 GDR to 17.0.1135.8 or later. The full advisory is at https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-67385. If immediate patching is not possible, restrict network access to SQL Server's TCP port (default 1433) using host-based firewall rules or network ACLs to limit exposure to known trusted application hosts only - this does not eliminate the vulnerability but reduces the reachable attack surface. Audit and minimize the number of SQL Server logins to reduce the pool of credentials that could satisfy the PR:L requirement.
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 class of memory-safety defect where a program continues to reference a memory region after it has been freed, enabling an attacker to control heap state and redirect execution. In SQL Server's context, this occurs within the database engine's network-accessible query-processing or connection-handling subsystem - exploitable over the SQL Server TCP listener (default port 1433) by any authenticated session. Affected CPE covers Microsoft SQL Server versions 14.x (2017), 15.x (2019), 16.x (2022), and 17.x (2025) across CU and GDR patch tracks, as confirmed by EUVD-2026-73381. The root cause is a classic heap-corruption primitive that, when reliably triggered, can overwrite function pointers or vtables to redirect control flow into attacker-supplied data or existing executable gadgets.
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:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Network-accessible SQL Server listener, low-privilege authenticated session required (PR:L), no complexity or interaction barriers, full impact on database host.
Primary rating from Vendor (microsoft).
CVSS VectorVendor: microsoft
Lifecycle Timeline
2DescriptionCVE.org
Use after free in SQL Server allows an authorized attacker to execute code over a network.
Executive ViewAI
Microsoft SQL Server instances across all actively maintained versions (2017-2025) face a critical use-after-free vulnerability allowing any authenticated database user to execute arbitrary code and fully compromise the system. The combination of low authentication barriers (any valid login), network accessibility, and impact on core enterprise data infrastructure creates immediate business risk to organizations dependent on SQL Server for line-of-business applications, financial systems, and customer data. Successful exploitation enables attackers to bypass database access controls, exfiltrate sensitive information, and establish persistence for lateral movement into broader infrastructure.
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
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-73381
GHSA-p7jh-8q9g-vggh
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB