Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain low-privileged local session
-
DeliveryInvoke vulnerable Remote Desktop code path
-
ExploitOverflow heap buffer with crafted input
-
ExecutionCorrupt heap and hijack execution
-
ImpactEscalate to SYSTEM privileges
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 the attacker to already have authenticated local access to the target with low privileges (CVSS PR:L, AV:L), i.e. an existing account or code-execution foothold on the Windows host; it is not remotely reachable and needs no user interaction (UI:N). The specific trigger is the Windows Remote Desktop component's heap-based buffer overflow, so the Remote Desktop code path must be reachable/invocable on the system. Limiting factors: the attacker cannot exploit this over the network without first gaining a local session, must possess valid low-privilege credentials or prior code execution, and the target must be an unpatched build within the listed version ranges (Windows 10 1607 through Windows 11 26H1 and Windows Server 2012 through 2025). The very low EPSS (0.04%) and SSVC 'Exploitation: none / Automatable: no' indicate no reliable, automatable exploit is currently known. |
| Impact | The signals are internally consistent and point to a real-but-not-urgent local escalation issue. The CVSS 3.1 vector (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, base 7.8 High) shows the attacker must already have local, low-privileged access but then achieves total impact - matching SSVC's 'Technical Impact: total'. Counterbalancing this, EPSS is only 0.04% (11th percentile), SSVC marks Exploitation as 'none' and Automatable as 'no', and there is no public exploit identified at time of analysis and no CISA KEV listing. The scope is Unchanged (S:U), so impact stays within the exploited system's authorization boundary. Overall this is a legitimate patch-priority item for privilege-boundary hardening - especially on multi-user, terminal-server, or shared hosts where low-privileged accounts are common - but it is not a wormable or mass-exploited network threat. No conflicting data was observed: the network-independence of the description aligns with AV:L, and the low EPSS is consistent with the absence of known exploitation. |
| Exploit ScenarioDerived | An attacker who already holds an ordinary low-privileged account on a Windows host - for example a standard user on a shared workstation or an established malware foothold on a terminal/RDP server - invokes the vulnerable Remote Desktop code path with crafted input that overflows a heap buffer, corrupting adjacent memory to hijack execution and escalate to SYSTEM. No user interaction and no network access are needed. No public exploit is identified at time of analysis, so exploitation currently requires custom development. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 23, 2026
Local privilege escalation in the Windows Remote Desktop component (CWE-122 heap-based buffer overflow) allows an authenticated low-privileged user to gain SYSTEM-level control across virtually all supported Windows client and server releases, from Windows 10 1607 through Windows 11 26H1 and Windows Server 2012 through 2025. Microsoft has released patches; there is no public exploit identified at time of analysis and EPSS exploitation probability is very low (0.04%), consistent with CISA SSVC rating exploitation as 'none'. The flaw is a serious defense-in-depth concern because it grants total confidentiality, integrity, and availability impact once a foothold exists, but it is not remotely reachable and requires prior local access.
RemediationAI
Apply the Microsoft security update for CVE-2026-40398 via the MSRC advisory (https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-40398), installing at minimum the fixed build for each affected release - for example Windows 10 22H2 build 10.0.19045.7291, Windows 11 24H2 build 10.0.26100.8457, Windows 11 25H2 build 10.0.26200.8457, Windows Server 2022 build 10.0.20348.5139, and Windows Server 2025 build 10.0.26100.32860 (Vendor-released patch: available from Microsoft; consult the advisory for the exact KB per SKU). Since exploitation requires an existing authenticated local foothold, effective compensating controls until patching completes include restricting interactive and Remote Desktop logon rights to trusted administrators, removing unnecessary low-privileged accounts from multi-user and terminal-server hosts, and enforcing least privilege and application allow-listing to limit an attacker's ability to run the exploit code; the trade-off is reduced convenience for shared-host users and additional administrative overhead. These controls reduce but do not eliminate risk, so prioritize the vendor patch. Additional advisory context is available at https://vuldb.com/vuln/363191.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 36 packages in microsoft, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerability resides in the Remote Desktop code paths of the Windows operating system, where memory allocated on the heap is written beyond its bounds (CWE-122, heap-based buffer overflow). Such overflows typically arise when a length or size field is mishandled while copying attacker-influenced data into a fixed or under-sized heap allocation, allowing corruption of adjacent heap metadata or object pointers that can be leveraged to hijack execution and run code in the security context of the vulnerable service. The CPE data confirms the affected surface spans the Microsoft Windows platform broadly - Windows 10 (1607, 1809, 21H2, 22H2), Windows 11 (22H3, 23H2, 24H2, 25H2, 26H1), and Windows Server 2012 through 2025, including Server Core installations - indicating the defect is in shared Remote Desktop OS code rather than an edition-specific feature. Because the SSVC technical impact is rated 'total', successful corruption yields full control of the targeted system.
Know when Windows Server 2012 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:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Local privilege escalation requiring an authenticated low-privileged foothold (AV:L, PR:L) with no user interaction; heap overflow yields SYSTEM control, so C/I/A all High.
Primary rating from NVD.
CVSS VectorNVD
DescriptionCVE.org
Heap-based buffer overflow in Windows Remote Desktop allows an authorized attacker to elevate privileges locally.
Articles & Coverage 1
Executive ViewAI
CVE-2026-40398 is a Windows privilege escalation affecting Windows 10, 11, and Server 2012-2025 that allows any local user to gain full administrative control. This represents a critical post-compromise risk: once attackers gain any local foothold through phishing, third-party vulnerabilities, or other means, they can escalate to complete system control. Microsoft has released patches that must be deployed immediately to eliminate this escalation path across the organization.
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 Windows Server 2012
View allWindows MSHTML component contains a remote code execution vulnerability that allows attackers to craft malicious ActiveX
<p>A remote code execution vulnerability exists when the Windows Print Spooler service improperly performs privileged fi
Remote code execution in Microsoft Office 2007-2016 and Windows Vista through 10 allows attackers to execute arbitrary c
Windows MSDT (Microsoft Support Diagnostic Tool) allows remote code execution when called via the ms-msdt URL protocol f
The SMBv1 server in Microsoft Windows Vista SP2; Windows Server 2008 SP2 and R2 SP1; Windows 7 SP1; Windows 8.1; Windows
The Windows VBScript engine contains a remote code execution vulnerability in object handling that allows full system co
Windows Print Spooler Remote Code Execution Vulnerability. Rated high severity (CVSS 7.8), this vulnerability is no auth
The Win32k kernel-mode driver in Windows Vista through Windows Server 2016 allows local privilege escalation, exploited
Windows Search Remote Code Execution Vulnerability. Rated high severity (CVSS 7.5), this vulnerability is remotely explo
An elevation of privilege vulnerability exists in Windows when the Win32k component fails to properly handle objects in
An elevation of privilege vulnerability exists in Windows when the Win32k component fails to properly handle objects in
Active Directory Domain Services Elevation of Privilege Vulnerability. Rated high severity (CVSS 7.5), this vulnerabilit
EUVD-2026-29660
GHSA-mp73-9w68-gx32
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB