Skip to main content
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain low-privileged local session
  2. Delivery
    Invoke vulnerable Remote Desktop code path
  3. Exploit
    Overflow heap buffer with crafted input
  4. Execution
    Corrupt heap and hijack execution
  5. Impact
    Escalate 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Windows 10 Version 22H2 10.0.19045.0 <10.0.19045.7291
Windows 10 Version 1809 10.0.17763.0 <10.0.17763.8755
Windows 11 Version 25H2 10.0.26200.0 <10.0.26200.8457
Windows Server 2012 R2 (Server Core installation) 6.3.9600.0 <6.3.9600.23181
Windows 11 Version 24H2 10.0.26100.0 <10.0.26100.8457
Windows 11 Version 23H2 10.0.22631.0 <10.0.22631.7079
Windows 10 Version 1607 10.0.14393.0 <10.0.14393.9140
Windows 11 version 22H3 10.0.22631.0 <10.0.22631.7079
Windows Server 2012 R2 6.3.9600.0 <6.3.9600.23181
Windows 11 version 26H1 10.0.28000.0 <10.0.28000.2113
Windows Server 2012 6.2.9200.0 <6.2.9200.26079
Windows Server 2016 10.0.14393.0 <10.0.14393.9140
Windows Server 2022, 23H2 Edition (Server Core installation) 10.0.25398.0 <10.0.25398.2330
Windows Server 2016 (Server Core installation) 10.0.14393.0 <10.0.14393.9140
Windows Server 2019 10.0.17763.0 <10.0.17763.8755
Windows Server 2012 (Server Core installation) 6.2.9200.0 <6.2.9200.26079
Windows 10 Version 21H2 10.0.19044.0 <10.0.19044.7291
Windows Server 2019 (Server Core installation) 10.0.17763.0 <10.0.17763.8755
Windows Server 2025 (Server Core installation) 10.0.26100.0 <10.0.26100.32860
Windows Server 2025 10.0.26100.0 <10.0.26100.32860
Windows Server 2022 10.0.20348.0 <10.0.20348.5139

Affected Packages

microsoft windows_10_version_1607_10_0_14393_9140 fix: Windows 10 Version 1607 for 32-bit Systems 10.0.14393.9140, Windows 10 Version 1607 for x64-based Systems 10.0.14393.9140
microsoft windows_10_version_1809_10_0_17763_8755 fix: Windows 10 Version 1809 for 32-bit Systems 10.0.17763.8755, Windows 10 Version 1809 for x64-based Systems 10.0.17763.8755
microsoft windows_10_version_21h2_10_0_19044_7291 fix: Windows 10 Version 21H2 for 32-bit Systems 10.0.19044.7291, Windows 10 Version 21H2 for ARM64-based Systems 10.0.19044.7291, Windows 10 Version 21H2 for x64-based Systems 10.0.19044.7291
microsoft windows_10_version_22h2_10_0_19045_7291 fix: Windows 10 Version 22H2 for 32-bit Systems 10.0.19045.7291, Windows 10 Version 22H2 for ARM64-based Systems 10.0.19045.7291, Windows 10 Version 22H2 for x64-based Systems 10.0.19045.7291
microsoft windows_11_version_23h2_10_0_22631_7079 fix: Windows 11 Version 23H2 for ARM64-based Systems 10.0.22631.7079, Windows 11 Version 23H2 for x64-based Systems 10.0.22631.7079
microsoft windows_11_version_24h2_10_0_26100_8457 fix: Windows 11 Version 24H2 for ARM64-based Systems 10.0.26100.8457, Windows 11 Version 24H2 for x64-based Systems 10.0.26100.8457
microsoft windows_11_version_25h2_10_0_26200_8457 fix: Windows 11 Version 25H2 for ARM64-based Systems 10.0.26200.8457, Windows 11 Version 25H2 for x64-based Systems 10.0.26200.8457
microsoft windows_11_version_26h1_10_0_28000_2113 fix: Windows 11 Version 26H1 for ARM64-based Systems 10.0.28000.2113, Windows 11 version 26H1 for x64-based Systems 10.0.28000.2113
microsoft windows_server_2012_6_2_9200_26079 fix: Windows Server 2012 6.2.9200.26079, Windows Server 2012 (Server Core installation) 6.2.9200.26079
microsoft windows_server_2012_r2_6_3_9600_23181 fix: Windows Server 2012 R2 6.3.9600.23181, Windows Server 2012 R2 (Server Core installation) 6.3.9600.23181
microsoft windows_server_2016_10_0_14393_9140 fix: Windows Server 2016 10.0.14393.9140, Windows Server 2016 (Server Core installation) 10.0.14393.9140
microsoft windows_server_2019_10_0_17763_8755 fix: Windows Server 2019 10.0.17763.8755, Windows Server 2019 (Server Core installation) 10.0.17763.8755
microsoft windows_server_2022_10_0_20348_5139 fix: Windows Server 2022 10.0.20348.5139, Windows Server 2022 (Server Core installation) 10.0.20348.5139
microsoft windows_server_2022_23h2_edition_10_0_25398_2330 fix: Windows Server 2022, 23H2 Edition (Server Core installation) 10.0.25398.2330
microsoft windows_server_2025_10_0_26100_32860 fix: Windows Server 2025 10.0.26100.32860, Windows Server 2025 (Server Core installation) 10.0.26100.32860
euvd windows_10_version_1607 fix: 10.0.14393.9140
euvd windows_10_version_1809 fix: 10.0.17763.8755
euvd windows_10_version_21h2 fix: 10.0.19044.7291
euvd windows_10_version_22h2 fix: 10.0.19045.7291
euvd windows_11_version_22h3 fix: 10.0.22631.7079
euvd windows_11_version_23h2 fix: 10.0.22631.7079
euvd windows_11_version_24h2 fix: 10.0.26100.8457
euvd windows_11_version_25h2 fix: 10.0.26200.8457
euvd windows_11_version_26h1 fix: 10.0.28000.2113
euvd windows_server_2012 fix: 6.2.9200.26079
euvd windows_server_2012_r2 fix: 6.3.9600.23181
euvd windows_server_2012_r2_server_core_installation fix: 6.3.9600.23181
euvd windows_server_2012_server_core_installation fix: 6.2.9200.26079
euvd windows_server_2016 fix: 10.0.14393.9140
euvd windows_server_2016_server_core_installation fix: 10.0.14393.9140
euvd windows_server_2019 fix: 10.0.17763.8755
euvd windows_server_2019_server_core_installation fix: 10.0.17763.8755
euvd windows_server_2022 fix: 10.0.20348.5139
euvd windows_server_2022_23h2_edition_server_core_installation fix: 10.0.25398.2330
euvd windows_server_2025 fix: 10.0.26100.32860
euvd windows_server_2025_server_core_installation fix: 10.0.26100.32860

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

NVD PRIMARY 7.8 HIGH
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
ENISA EUVD HIGH
CIRCL (temporal) 6.8 MEDIUM
vuln.today AI 7.8 HIGH

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.

3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

DescriptionCVE.org

Heap-based buffer overflow in Windows Remote Desktop allows an authorized attacker to elevate privileges locally.

Executive ViewAI

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.0%
Top 89% exploitable
Prevalence
Ubiquitous
Windows OS component present in nearly all enterprise environments
Threat Intel
1
1 sources
Vendor Action
See Below
Required. The vulnerability documented by this CVE requires customer action to resolve.
Vendor Status
Publicly Disclosed:No
Exploited:No
Latest Software Release:Exploitation More Likely
Data Quality
7 sources
Confidence: High

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +39
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: +5

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.

CVE-2021-40444 HIGH POC
8.8 Sep 15

Windows MSHTML component contains a remote code execution vulnerability that allows attackers to craft malicious ActiveX

CVE-2021-34527 HIGH POC
8.8 Jul 02

<p>A remote code execution vulnerability exists when the Windows Print Spooler service improperly performs privileged fi

CVE-2017-0199 HIGH POC
7.8 Apr 12

Remote code execution in Microsoft Office 2007-2016 and Windows Vista through 10 allows attackers to execute arbitrary c

CVE-2022-30190 HIGH POC
7.8 Jun 01

Windows MSDT (Microsoft Support Diagnostic Tool) allows remote code execution when called via the ms-msdt URL protocol f

CVE-2017-0147 HIGH POC
7.5 Mar 17

The SMBv1 server in Microsoft Windows Vista SP2; Windows Server 2008 SP2 and R2 SP1; Windows 7 SP1; Windows 8.1; Windows

CVE-2018-8174 HIGH POC
7.5 May 09

The Windows VBScript engine contains a remote code execution vulnerability in object handling that allows full system co

CVE-2021-1675 HIGH POC
7.8 Jun 08

Windows Print Spooler Remote Code Execution Vulnerability. Rated high severity (CVSS 7.8), this vulnerability is no auth

CVE-2016-7255 HIGH POC
7.8 Nov 10

The Win32k kernel-mode driver in Windows Vista through Windows Server 2016 allows local privilege escalation, exploited

CVE-2023-36884 HIGH POC
7.5 Jul 11

Windows Search Remote Code Execution Vulnerability. Rated high severity (CVSS 7.5), this vulnerability is remotely explo

CVE-2019-1458 HIGH POC
7.8 Dec 10

An elevation of privilege vulnerability exists in Windows when the Win32k component fails to properly handle objects in

CVE-2018-8453 HIGH POC
7.8 Oct 10

An elevation of privilege vulnerability exists in Windows when the Win32k component fails to properly handle objects in

CVE-2021-42278 HIGH POC
7.5 Nov 10

Active Directory Domain Services Elevation of Privilege Vulnerability. Rated high severity (CVSS 7.5), this vulnerabilit

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy