Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain valid SQL Server login / network reach
-
DeliverySend crafted query or TDS payload
-
ExploitTrigger heap-based buffer overflow
-
ExecutionCorrupt heap and hijack control flow
-
ImpactExecute code as SQL Server service
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 network access to a SQL Server 2017, 2019, 2022, or 2025 (x64) instance AND, per Microsoft's 'authorized attacker' language, a valid authenticated session/login to that instance - despite the input vector's PR:N, MSRC 'authorized' phrasing denotes authentication, so an existing database credential is the realistic prerequisite. Limiting factors: successful heap-based buffer overflow exploitation typically demands reliable heap grooming and target-specific offsets (elevating attack complexity), no user interaction is needed, and only patched build thresholds remediate (e.g., 2022 GDR <16.0.1200.5 / CU26 <16.0.4275.2, 2019 GDR <15.0.2190.7, 2017 GDR <14.0.2130.4, 2025 GDR <17.0.1135.8). Instances not network-reachable or requiring credentials the attacker lacks are not exploitable. |
| Impact | Signals conflict and point to a lower real-world priority than the 9.8 headline suggests. The provided CVSS 3.1 vector is AV:N/AC:L/PR:N/UI:N (unauthenticated network RCE, C:H/I:H/A:H = 9.8), but the Microsoft description explicitly states an 'authorized attacker,' which is MSRC's standard phrasing for an authenticated actor (PR:L). This PR:N-in-vector vs. 'authorized' contradiction should be resolved against the MSRC advisory before treating this as unauthenticated. EPSS is low at 0.63% (48th percentile), and CISA SSVC scores Exploitation: none and Automatable: no - meaning no observed exploitation and no reliable mass-exploitation path - even though Technical Impact is 'total.' There is no CISA KEV listing and no public exploit code identified. Net: this is a genuinely high-impact memory-corruption RCE in a widely deployed database, but current exploitation signals are quiet and successful attack almost certainly requires an existing SQL Server login plus heap-grooming skill, so it is a patch-in-normal-cycle priority for reachable/exposed instances rather than an emergency. |
| Exploit ScenarioDerived | An attacker who already holds valid credentials (or has compromised an application account) to a reachable SQL Server 2017-2025 instance sends a crafted query or protocol payload that overflows a heap buffer, corrupting adjacent heap structures to hijack execution and run code in the SQL Server service context. No public exploit code has been identified at time of analysis, and the heap overflow likely requires careful grooming (AC:H), so weaponization is non-trivial. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Sep 17, 2026
Heap-based buffer overflow in Microsoft SQL Server 2017, 2019, 2022, and 2025 (x64) can be triggered over the network and, if exploited successfully, allows code execution in the context of the SQL Server engine process on the database host. Microsoft describes the attacker as 'authorized', and the assessed vector requires a valid authenticated session (PR:L, AC:H), which is stricter than the 9.8 unauthenticated headline score from the NVD entry; no public exploit code has been identified and EPSS is low at 0.63% (48th percentile), with CISA SSVC recording Exploitation: none and Automatable: no. Vendor patches are available, and only instances at or above the corrected build thresholds are protected.
Earlier versions of this analysis (1)
Heap-based buffer overflow in Microsoft SQL Server enables an authenticated, low-privileged network attacker to achieve remote code execution with full confidentiality, integrity, and availability impact. Affected versions span SQL Server 2017 through 2025 across both Cumulative Update and General Distribution Release (GDR) servicing tracks. No public exploit code or active exploitation via CISA KEV has been identified at time of analysis; vendor patches are available from Microsoft.
RemediationAI
Apply the Microsoft updates referenced in the MSRC advisory (https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-67631) and confirm the instance reaches at least its corrected build: SQL Server 2017 GDR 14.0.2130.4 or CU 31 14.0.3550.4, SQL Server 2019 GDR 15.0.2190.7 or CU 32 15.0.4490.9, SQL Server 2022 GDR 16.0.1200.5 or CU 26 16.0.4275.2, and SQL Server 2025 GDR 17.0.1135.8 or CU 8 17.0.4085.5; apply the update track that matches how the instance is currently serviced, since GDR and CU builds are not interchangeable and switching tracks requires care. Until patching completes, the main compensating control is reducing exposure of the TDS listener: block inbound TCP 1433 (and any custom or named-instance ports) from untrusted networks, keep instances behind a firewall or private network rather than directly internet-facing, and delete or rotate logins that are not required, because the assessed prerequisite is a valid authenticated session. These measures do not remove the memory-corruption flaw and will break legitimate remote client, application, and replication connectivity if applied too broadly, so scope the rules to required client subnets and monitor for connection failures; restricting logins reduces the pool of credentials an attacker can use but does not help against an already-compromised application account.
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
The flaw is CWE-122, a heap-based buffer overflow, in the SQL Server database engine (sqlservr.exe, x64 builds). Such defects occur when a length or size value derived from a network-supplied message is used to write into a heap allocation that was sized from a different, attacker-influenced value, so an over-long input spills past the allocation boundary and corrupts adjacent heap metadata or objects. Because the corrupted memory lives in the long-running engine process, a successful overwrite can redirect control flow and yield code execution under the SQL Server service account. The affected CPEs enumerate the x64 editions of SQL Server 2017, 2019, 2022, and 2025, meaning the vulnerable parsing path is present across four major releases and both the GDR (security-only) and CU (cumulative update) servicing tracks. Practical exploitation is non-trivial: heap overflows of this class generally require reliable heap grooming and build-specific offsets to convert corruption into a stable primitive, which is why the independent assessment raises attack complexity to High and requires an authenticated session rather than accepting the unauthenticated 9.8 reading.
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:N/UI:N/S:U/C:H/I:H/A:H
Description's 'authorized attacker' implies PR:L not PR:N; reliable heap-overflow exploitation needs grooming so AC:H; full C/I/A in the SQL Server service context.
Primary rating from NVD.
CVSS VectorNVD
Lifecycle Timeline
5DescriptionNVD
Heap-based buffer overflow in SQL Server allows an authorized attacker to execute code over a network.
Executive ViewAI
Microsoft SQL Server 2017, 2019, 2022, and 2025 (x64) deployments are exposed to a critical code-execution vulnerability that could let an authenticated attacker compromise the database host, putting sensitive data, service availability, and connected business applications at risk. No public exploit identified at time of analysis and EPSS is low, but a vendor patch is available and unpatched instances below the corrected build threshold remain exposed. Leadership should prioritize patching because a compromised SQL Server engine could enable data theft, operational disruption, and lateral movement into other enterprise systems.
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
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
Privilege escalation in Microsoft SQL Server (versions 2017, 2019, 2022, and 2025) allows a low-privileged authenticated
EUVD-2026-73185
GHSA-9wr9-7c42-p6f9
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB