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-2023-41765

CVE-2023-41765: Windows 10 1507 L2TP RCE Vulnerability

CVE-2023-41765 is a remote code execution vulnerability in Microsoft Windows 10 1507's Layer 2 Tunneling Protocol that enables attackers to execute arbitrary code. This article covers technical details, affected versions, and mitigation.

Published: January 28, 2026

CVE-2023-41765 Overview

CVE-2023-41765 is a remote code execution vulnerability affecting the Layer 2 Tunneling Protocol (L2TP) implementation in Microsoft Windows. This vulnerability allows an unauthenticated remote attacker to execute arbitrary code on affected systems by sending specially crafted network requests to the L2TP service. The vulnerability stems from a use-after-free condition combined with a race condition in the L2TP protocol handler.

Critical Impact

Successful exploitation enables remote attackers to achieve arbitrary code execution with SYSTEM-level privileges on vulnerable Windows systems without requiring authentication, potentially leading to complete system compromise.

Affected Products

  • Microsoft Windows 10 (versions 1507, 1607, 1809, 21H2, 22H2)
  • Microsoft Windows 11 (versions 21H2, 22H2)
  • Microsoft Windows Server 2008 SP2 and R2 SP1
  • Microsoft Windows Server 2012 and R2
  • Microsoft Windows Server 2016
  • Microsoft Windows Server 2019
  • Microsoft Windows Server 2022

Discovery Timeline

  • October 10, 2023 - CVE-2023-41765 published to NVD
  • November 21, 2024 - Last updated in NVD database

Technical Details for CVE-2023-41765

Vulnerability Analysis

This remote code execution vulnerability affects the Layer 2 Tunneling Protocol component in Windows operating systems. The flaw exists in how the L2TP service handles certain network protocol requests, leading to a dangerous combination of memory corruption issues. When processing incoming L2TP packets, the service improperly manages object lifecycles, creating an opportunity for memory to be accessed after it has been freed.

The vulnerability is classified under CWE-416 (Use After Free) and CWE-362 (Race Condition). The use-after-free condition occurs when the L2TP service frees a memory object but subsequently attempts to reference that memory location. Combined with a race condition in the multi-threaded processing of L2TP requests, an attacker can potentially control the contents of the freed memory, leading to arbitrary code execution.

Root Cause

The root cause of CVE-2023-41765 lies in improper synchronization and memory management within the L2TP protocol handler. When concurrent requests are processed, a race condition can occur between the deallocation of protocol objects and their subsequent use. This creates a use-after-free scenario where freed memory may be reallocated and populated with attacker-controlled data before the vulnerable code path attempts to access the original object.

Attack Vector

The attack vector for this vulnerability is network-based. An attacker can exploit this vulnerability remotely without requiring any user interaction or prior authentication. The attack requires the attacker to win a race condition, which introduces complexity to reliable exploitation.

The exploitation process involves:

  1. Establishing an L2TP connection to the target Windows system
  2. Sending a sequence of specially crafted L2TP packets designed to trigger the race condition
  3. Timing the requests to cause a use-after-free condition
  4. Leveraging the memory corruption to achieve code execution with SYSTEM privileges

The vulnerability is exploitable over the network through UDP port 1701 (L2TP), meaning systems with the Routing and Remote Access Service (RRAS) enabled and exposed to untrusted networks are at highest risk.

Detection Methods for CVE-2023-41765

Indicators of Compromise

  • Unusual network traffic patterns on UDP port 1701 (L2TP) from external sources
  • Unexpected crashes or restarts of the Routing and Remote Access Service (RRAS)
  • Anomalous process creation originating from svchost.exe hosting RRAS
  • Memory corruption artifacts in Windows Event logs related to L2TP services

Detection Strategies

  • Monitor network traffic for anomalous L2TP packet patterns, particularly high-frequency connection attempts or malformed packets
  • Implement network intrusion detection signatures targeting known L2TP exploitation patterns
  • Enable Windows Defender Exploit Guard to detect and block memory corruption attempts
  • Configure SIEM rules to alert on RRAS service crashes or unexpected restarts

Monitoring Recommendations

  • Enable verbose logging for the Routing and Remote Access Service
  • Monitor Event ID 7036 (Service Control Manager) for unexpected RRAS service state changes
  • Implement network segmentation to limit L2TP service exposure to trusted networks only
  • Deploy endpoint detection and response (EDR) solutions to detect post-exploitation activity

How to Mitigate CVE-2023-41765

Immediate Actions Required

  • Apply Microsoft security updates from the October 2023 Patch Tuesday release immediately
  • Disable the Routing and Remote Access Service (RRAS) on systems where L2TP is not required
  • Implement firewall rules to block UDP port 1701 from untrusted networks
  • Prioritize patching of internet-facing Windows servers and VPN infrastructure

Patch Information

Microsoft released security updates addressing this vulnerability as part of the October 2023 Patch Tuesday release. Administrators should obtain the appropriate update for their Windows version from the Microsoft Security Update Guide for CVE-2023-41765. The patches address the underlying race condition and use-after-free vulnerability in the L2TP protocol handler.

Workarounds

  • Disable the Routing and Remote Access Service if not required using the command below
  • Block L2TP traffic at network perimeter firewalls for systems that do not require VPN functionality
  • Implement network access control lists (ACLs) to restrict L2TP access to authorized IP addresses only
  • Consider migrating to alternative VPN solutions such as IKEv2 or SSL-based VPNs while awaiting patch deployment
bash
# Disable Routing and Remote Access Service (requires administrative privileges)
sc stop RemoteAccess
sc config RemoteAccess start= disabled

# Block L2TP port using Windows Firewall
netsh advfirewall firewall add rule name="Block L2TP Inbound" dir=in action=block protocol=UDP localport=1701

# Verify RRAS service is disabled
sc query RemoteAccess

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechMicrosoft

  • SeverityHIGH

  • CVSS Score8.1

  • EPSS Probability0.22%

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

  • CWE-362
  • Vendor Resources
  • Microsoft Security Update CVE-2023-41765
  • Related CVEs
  • CVE-2026-32191: Microsoft Bing Images RCE Vulnerability

  • CVE-2026-21536: Microsoft Devices Pricing RCE Vulnerability

  • CVE-2026-27848: MR9600/MX4200 RCE Vulnerability

  • CVE-2021-24105: Package Manager Configurations RCE 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