Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain valid SQL Server credentials
-
DeliveryReach TCP 1433 on target server
-
ExploitAuthenticate with low-privilege login
-
ExecutionSend crafted malformed TDS/query payload
-
PersistTrigger heap buffer overflow
-
ImpactExecute arbitrary code as SQL Server service account
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Heap buffer bounds checking
MITRE ATT&CK
1 technique across 1 tactic: Execution 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 with at minimum low-privilege authentication (PR:L per CVSS vector). The attacker must be able to reach the SQL Server network port (default TCP 1433) from their position. No elevated database roles, stored-procedure execute rights, or special server configuration have been documented as required beyond a basic authenticated session. What limits exploitation: the attacker must first possess valid credentials to the target instance, eliminating fully unauthenticated remote attacks. Environments that restrict SQL Server access to application tiers via firewall rules and rotate service-account credentials regularly face meaningfully reduced exposure. |
| Impact | The CVSS 8.8 score with AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H reflects a realistic threat model: authenticated low-privilege network access with full CIA impact. The key limiting factor is PR:L - the attacker must possess valid SQL Server credentials, which substantially narrows the exploitable population compared to a PR:N vulnerability. Nevertheless, SQL Server environments routinely expose service accounts, application database users, and developer credentials that attackers can obtain through phishing, credential-stuffing, or lateral movement. No EPSS data was provided; no CISA KEV listing exists; and no public exploit code has been identified, keeping real-world exploitation probability moderate rather than imminent. Despite the absence of active exploitation signals, the combination of network reachability, low complexity once credentials are obtained, and full code-execution impact on a typically privileged service warrants treating this as high priority for enterprise SQL Server operators. |
| Exploit ScenarioDerived | An attacker who has obtained low-privilege SQL Server credentials - through phishing, credential reuse, or a compromised application service account - connects to an internet- or intranet-facing SQL Server instance over TCP and submits a specially crafted query or protocol-level message that triggers the heap overflow. Successful exploitation causes memory corruption that redirects SQL Server execution flow, yielding code execution in the context of the SQL Server service account. 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 meAnalysisAIv1 – Sep 08, 2026
Heap-based buffer overflow in Microsoft SQL Server 2017 through 2025 enables an authenticated low-privilege network attacker to execute arbitrary code on the database host. The vulnerability (CWE-122) resides in a network-reachable code path, requiring only valid SQL Server credentials - no elevated database roles or special configuration. No public exploit code and no CISA KEV listing have been identified at time of analysis, but the full CIA impact and low attack complexity make this a high-priority patching target in enterprise environments.
RemediationAI
Apply the vendor-released patches immediately via Microsoft Update or manual download from the MSRC advisory at https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-67639. For SQL Server 2017, upgrade to CU31 build 14.0.3550.4 or GDR build 14.0.2130.4. For SQL Server 2019, upgrade to CU32 build 15.0.4490.9 or GDR build 15.0.2190.7. For SQL Server 2022, upgrade to CU26 build 16.0.4275.2 or GDR build 16.0.1200.5. For SQL Server 2025, upgrade to CU8 build 17.0.4085.5 or GDR build 17.0.1135.8. Where immediate patching is not feasible, restrict SQL Server port (TCP 1433 by default) access via firewall to only trusted IP ranges, enforce strong credential policies and rotate any shared or service-account passwords, and audit SQL Server logins to remove unnecessary accounts - noting that these controls reduce attack surface but do not eliminate the vulnerability for legitimate authenticated users.
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-122 (Heap-based Buffer Overflow) describes a condition where a program writes beyond the bounds of a heap-allocated memory region, enabling an attacker to corrupt adjacent heap metadata or function pointers and redirect execution. In SQL Server's case the vulnerability is reachable over the network (AV:N), suggesting it lies in a component that processes incoming T-SQL queries, network protocol parsing (TDS - Tabular Data Stream), or a built-in function accepting attacker-controlled input. Affected product lines span CPE ranges for Microsoft SQL Server 2017 (14.x), 2019 (15.x), 2022 (16.x), and 2025 (17.x), covering both Cumulative Update (CU) and General Distribution Release (GDR) servicing branches. The SQL Server service account on Windows typically runs as NT SERVICE\MSSQLSERVER, which can hold significant host-level privileges.
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-reachable, low-complexity heap overflow requiring only low-privilege SQL credentials, with full code execution impact and no scope change.
Primary rating from Vendor (microsoft).
CVSS VectorVendor: microsoft
Lifecycle Timeline
2DescriptionCVE.org
Heap-based buffer overflow in SQL Server allows an authorized attacker to execute code over a network.
Executive ViewAI
Microsoft SQL Server versions 2017 through 2025 are vulnerable to remote code execution via a heap-based buffer overflow that can be exploited by any user with valid database credentials. An attacker with standard SQL Server login access can execute arbitrary code on the database host, potentially compromising all data stored on the server and using it as a pivot point into the enterprise network. This affects organizations across all industries that rely on SQL Server for critical data storage and applications.
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
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
A heap overflow occurs when a program writes data beyond the bounds of a buffer allocated in the heap memory region.
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
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
Privilege escalation in Microsoft SQL Server (versions 2017, 2019, 2022, and 2025) allows a low-privileged authenticated
EUVD-2026-73387
GHSA-8jxv-x8fp-rxf8
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB