The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-40398

CVE-2026-40398: Windows 10 1607 Privilege Escalation Flaw

CVE-2026-40398 is a heap-based buffer overflow privilege escalation vulnerability in Microsoft Windows 10 1607 Remote Desktop. This article covers technical details, affected versions, security impact, and mitigation.

Published: May 17, 2026

CVE-2026-40398 Overview

CVE-2026-40398 is a heap-based buffer overflow vulnerability in Windows Remote Desktop that enables local privilege escalation. An authorized attacker with low privileges can corrupt heap memory to execute code in a higher-privileged context. The flaw is tracked under [CWE-122: Heap-based Buffer Overflow] and affects a broad set of Windows client and server releases, from Windows 10 1607 through Windows Server 2025. Microsoft has published an advisory through the Microsoft Security Update Guide. The vulnerability requires local access and no user interaction, and successful exploitation impacts confidentiality, integrity, and availability.

Critical Impact

A locally authenticated attacker can corrupt heap memory in Windows Remote Desktop to gain SYSTEM-level privileges on affected Windows clients and servers.

Affected Products

  • Microsoft Windows 10 (1607, 1809, 21H2, 22H2)
  • Microsoft Windows 11 (23H2, 24H2, 25H2, 26H1)
  • Microsoft Windows Server 2012, 2016, 2019, 2022, 2022 23H2, and 2025

Discovery Timeline

  • 2026-05-12 - CVE-2026-40398 published to NVD
  • 2026-05-15 - Last updated in NVD database

Technical Details for CVE-2026-40398

Vulnerability Analysis

The vulnerability resides in the Windows Remote Desktop component and manifests as a heap-based buffer overflow [CWE-122]. When the affected code path processes attacker-influenced input, it writes beyond the bounds of a heap-allocated buffer. This out-of-bounds write corrupts adjacent heap structures, including object headers, function pointers, or pointer tables used by privileged Remote Desktop services.

Because Remote Desktop components execute with elevated privileges, controlled corruption of heap metadata enables a local attacker to redirect execution flow. The end result is code execution in the context of a higher-privileged process, achieving local elevation of privilege.

Root Cause

The root cause is improper validation of length or size parameters before copying data into a heap allocation within Remote Desktop logic. The component fails to enforce the boundary between attacker-supplied data size and destination buffer capacity. Microsoft has not released a public technical breakdown of the specific function, and details remain in the vendor advisory.

Attack Vector

Exploitation requires local access and low-level authenticated privileges on the target system. No user interaction is necessary. An attacker first obtains a foothold as a standard user, then invokes the vulnerable Remote Desktop code path with crafted input to trigger the overflow. Successful exploitation yields privilege escalation to SYSTEM, allowing the attacker to install programs, modify data, or create new accounts with full rights.

No public proof-of-concept exploit is currently available, and the vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog. The EPSS probability is 0.027%, indicating low predicted near-term exploitation activity. See the Microsoft Security Update Guide for vendor-specific technical context.

Detection Methods for CVE-2026-40398

Indicators of Compromise

  • Unexpected crashes of svchost.exe or Remote Desktop service processes (TermService, SessionEnv, UmRdpService) with heap corruption error codes such as STATUS_HEAP_CORRUPTION (0xC0000374).
  • Standard user processes spawning child processes running as NT AUTHORITY\SYSTEM shortly after interacting with Remote Desktop components.
  • Anomalous loading of Remote Desktop client or server DLLs (mstscax.dll, rdpcorets.dll, termsrv.dll) by non-standard user processes.

Detection Strategies

  • Monitor Windows Error Reporting and Application Event Log entries for crashes in Remote Desktop service binaries, which can indicate exploitation attempts that fail before achieving control.
  • Hunt for process lineage anomalies where low-privilege user sessions produce SYSTEM-level child processes without a legitimate scheduled task or service trigger.
  • Correlate Sysmon Event ID 1 (process creation) and Event ID 10 (process access) involving lsass.exe or Remote Desktop services to surface post-exploitation behavior.

Monitoring Recommendations

  • Enable command-line auditing and PowerShell script block logging on all RDP-enabled hosts to capture post-escalation activity.
  • Stream endpoint telemetry to a centralized data lake or SIEM for behavioral correlation across users and hosts, including process token elevation events.
  • Alert on creation of new local administrators, service installations, or scheduled tasks immediately following Remote Desktop service exceptions.

How to Mitigate CVE-2026-40398

Immediate Actions Required

  • Apply the May 2026 Microsoft security updates to all affected Windows client and server systems as published in the Microsoft Security Update Guide.
  • Prioritize patching on multi-user systems, jump hosts, Remote Desktop Session Hosts, and Virtual Desktop Infrastructure where many low-privilege users have local logon rights.
  • Audit local user accounts and remove unnecessary interactive logon privileges to reduce the population of accounts that could trigger the local attack vector.

Patch Information

Microsoft has issued patches for all affected Windows builds, including Windows 10 1607 through 22H2, Windows 11 23H2 through 26H1, and Windows Server 2012 through 2025. Refer to the vendor advisory at the Microsoft Security Update Guide for the specific KB article and build numbers applicable to each Windows version in your environment.

Workarounds

  • If patching must be delayed, restrict local interactive logon and Remote Desktop access to trusted administrators only via Group Policy (Allow log on locally and Allow log on through Remote Desktop Services).
  • Disable the Remote Desktop Services (TermService) on systems where it is not required, eliminating the vulnerable code path.
  • Enforce application allowlisting through Windows Defender Application Control or AppLocker to limit which binaries unprivileged users can execute against Remote Desktop components.
bash
# Configuration example: disable Remote Desktop where not required
Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server' -Name 'fDenyTSConnections' -Value 1
Stop-Service -Name TermService -Force
Set-Service -Name TermService -StartupType Disabled

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypePrivilege Escalation

  • Vendor/TechWindows

  • SeverityHIGH

  • CVSS Score7.8

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-122
  • Vendor Resources
  • Microsoft Security Update Guide
  • Related CVEs
  • CVE-2026-41088: Windows 10 21h2 Privilege Escalation Flaw

  • CVE-2026-41095: Windows Server 2012 Privilege Escalation

  • CVE-2026-40382: Windows 10 1607 Privilege Escalation Flaw

  • CVE-2026-40397: Windows 10 1607 Privilege Escalation Flaw
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English