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
    • 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-2024-38076

CVE-2024-38076: Windows Server 2016 RCE Vulnerability

CVE-2024-38076 is a remote code execution vulnerability in Windows Remote Desktop Licensing Service on Windows Server 2016. Attackers can exploit this flaw to execute arbitrary code. This article covers technical details, impact, and mitigation.

Updated: January 22, 2026

CVE-2024-38076 Overview

CVE-2024-38076 is a critical remote code execution vulnerability affecting the Windows Remote Desktop Licensing Service (RD Licensing). This vulnerability allows unauthenticated attackers to execute arbitrary code on vulnerable Windows Server systems over the network without any user interaction. The Remote Desktop Licensing Service is a core component used by organizations to manage Remote Desktop Services (RDS) Client Access Licenses (CALs).

Critical Impact

Unauthenticated remote attackers can achieve full system compromise on Windows Server systems running the Remote Desktop Licensing Service, potentially gaining complete control over enterprise infrastructure.

Affected Products

  • Microsoft Windows Server 2016
  • Microsoft Windows Server 2019
  • Microsoft Windows Server 2022
  • Microsoft Windows Server 2022 23H2

Discovery Timeline

  • July 9, 2024 - CVE-2024-38076 published to NVD
  • November 21, 2024 - Last updated in NVD database

Technical Details for CVE-2024-38076

Vulnerability Analysis

This vulnerability is classified as a Heap-based Buffer Overflow (CWE-122), a memory corruption issue that occurs when data is written beyond the allocated boundaries of a heap buffer. In the context of the Remote Desktop Licensing Service, this overflow condition can be triggered remotely by sending specially crafted requests to the vulnerable service.

The Remote Desktop Licensing Service (lserver.exe) handles license management operations for RDS deployments. When processing certain licensing protocol messages, the service fails to properly validate the size of input data before copying it into a fixed-size heap buffer. This allows an attacker to overflow the buffer and potentially overwrite adjacent heap metadata or other critical memory structures.

Successful exploitation enables an attacker to achieve arbitrary code execution in the context of the RD Licensing Service, which typically runs with SYSTEM privileges. This provides complete control over the compromised server, including the ability to install malware, access sensitive data, create new privileged accounts, and pivot to other systems on the network.

Root Cause

The root cause of CVE-2024-38076 is improper validation of input length in the Remote Desktop Licensing Service. The service allocates a heap buffer of a specific size but fails to verify that incoming data does not exceed this allocation before copying. This classic heap-based buffer overflow pattern (CWE-122) allows attackers to corrupt heap memory structures, potentially leading to arbitrary code execution.

Attack Vector

The attack vector is network-based and requires no authentication or user interaction. An attacker can exploit this vulnerability by sending specially crafted packets to the Remote Desktop Licensing Service, which listens on TCP port 135 (RPC) and dynamic RPC ports. The service processes the malicious input without proper bounds checking, triggering the heap buffer overflow.

The attack sequence typically involves:

  1. Identifying Windows Server systems running the Remote Desktop Licensing Service
  2. Sending specially crafted licensing protocol messages to trigger the overflow
  3. Leveraging the memory corruption to achieve code execution
  4. Gaining SYSTEM-level access to the compromised server

Since no authentication is required and the attack is fully network-accessible, this vulnerability poses a significant risk to any exposed RD Licensing servers, particularly those accessible from untrusted networks.

Detection Methods for CVE-2024-38076

Indicators of Compromise

  • Unexpected crashes or restarts of the lserver.exe (Remote Desktop Licensing) service
  • Anomalous network traffic patterns targeting TCP port 135 and dynamic RPC ports
  • Suspicious process spawning from lserver.exe such as cmd.exe, powershell.exe, or unknown executables
  • Unexpected memory access violations or heap corruption events in Windows Event logs

Detection Strategies

  • Monitor Windows Event logs for Application crashes or errors related to lserver.exe
  • Implement network intrusion detection rules to identify malformed RPC traffic targeting the RD Licensing Service
  • Use endpoint detection and response (EDR) solutions to detect anomalous behavior from the lserver.exe process
  • Deploy SentinelOne Singularity XDR for real-time behavioral analysis and automatic threat detection

Monitoring Recommendations

  • Enable detailed logging for the Remote Desktop Licensing Service and RPC communications
  • Configure alerts for any child processes spawned by lserver.exe as this is abnormal behavior
  • Monitor for unusual outbound network connections from Windows Server systems running RD Licensing
  • Implement file integrity monitoring for the %SystemRoot%\System32\lserver.exe binary

How to Mitigate CVE-2024-38076

Immediate Actions Required

  • Apply the Microsoft security update released in July 2024 immediately on all affected Windows Server systems
  • If patching is not immediately possible, disable the Remote Desktop Licensing Service on systems where it is not required
  • Restrict network access to the RD Licensing Service to only authorized management systems using firewall rules
  • Isolate affected servers from untrusted networks until patches can be applied

Patch Information

Microsoft has released security updates addressing this vulnerability as part of the July 2024 Patch Tuesday release. Organizations should apply the appropriate cumulative update for their Windows Server version immediately. Detailed patch information and download links are available in the Microsoft Security Update Guide.

The following Windows Server versions require updates:

  • Windows Server 2016
  • Windows Server 2019
  • Windows Server 2022
  • Windows Server 2022 23H2

Workarounds

  • Disable the Remote Desktop Licensing Service (TermServLicensing) if not actively used in your environment
  • Block RPC traffic (TCP port 135 and dynamic ports) from untrusted networks at the perimeter firewall
  • Implement network segmentation to isolate RD Licensing servers from general network traffic
  • Use Windows Firewall with Advanced Security to restrict inbound connections to the RD Licensing Service
bash
# Disable Remote Desktop Licensing Service (if not required)
sc config TermServLicensing start= disabled
net stop TermServLicensing

# Block inbound RPC traffic using Windows Firewall
netsh advfirewall firewall add rule name="Block RD Licensing RPC" dir=in action=block protocol=tcp localport=135 remoteip=any

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechWindows

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability8.73%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-122

  • NVD-CWE-noinfo
  • Vendor Resources
  • Microsoft CVE-2024-38076 Advisory
  • Related CVEs
  • CVE-2026-31995: Openclaw Command Injection Vulnerability

  • CVE-2026-25190: Windows GDI RCE Vulnerability

  • CVE-2026-25166: Windows System Image Manager RCE Flaw

  • CVE-2026-25173: Windows RRAS RCE Vulnerability
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