Windows LSA Spoofing Vulnerability (CVE-2021-36942, PetitPotam) Technical Analysis and Mitigation Guide
Executive & SecOps Summary
SECOPS ASSESSMENTWindows and Windows Server operating systems, particularly Active Directory Domain Controllers
Unauthenticated remote attackers can exploit the LSARPC interface to force a Domain Controller to authenticate against an arbitrary server via NTLM, leading to full domain takeover
Apply the official Microsoft security updates immediately, and configure Extended Protection for Authentication (EPA) alongside SMB signing to block NTLM relay vectors
Affected Products & Version Scope
Remediation & Live Workaround Commands
PATCH & WORKAROUND1. Official Patch & Version Upgrade Commands
Deploy the latest cumulative security updates provided by Microsoft to resolve the underlying LSARPC validation flaw. You can force the installation of pending security updates via PowerShell.
# Install and force Windows Update for cumulative security patches
Install-Module PSWindowsUpdate -Force -Verbose
Get-WindowsUpdate -Category 'Security Updates' -AcceptAll -Install -AutoReboot2. Temporary Workaround & Hardening Configuration
If immediate patching is not feasible, mitigate the NTLM relay vector by disabling NTLM on AD CS servers, enabling Extended Protection for Authentication (EPA), and restricting anonymous access to named pipes on Domain Controllers.
# Restrict Null Session Pipes to prevent anonymous LSARPC access
New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters' -Name 'NullSessionPipes' -PropertyType MultiString -Value @('samr') -Force
# Enable EPA for AD CS Web Enrollment in IIS
Import-Module WebAdministration
Set-WebConfigurationProperty -Filter '/system.webServer/security/authentication/windowsAuthentication' -Name 'extendedProtection.tokenChecking' -Value 'Required' -PSPath 'IIS:\Sites\Default Web Site\CertSrv'3. Log Audit & IoC Verification Commands
Monitor Windows Security Event Logs for Event ID 5145 (A network share object was accessed) targeting the IPC$ share with relative target names associated with efsrpc or lsarpc to detect potential PetitPotam exploitation attempts.
# Query Security Event Logs for suspicious MS-EFSR named pipe access
Get-WinEvent -FilterHashtable @{
LogName='Security';
Id=5145
} -ErrorAction SilentlyContinue | Where-Object {
$_.Message -like '*efsrpc*' -or $_.Message -like '*lsarpc*'
} | Select-Object TimeCreated, RecordId, Message | Format-Table -WrapBlock Kernel Privilege Escalation & Ransomware Payloads Before You Can Reboot
Protect unpatched Windows, Linux, and macOS workloads against in-memory exploitation and lateral movement with autonomous EDR.
Technical Root Cause & Exploitation Mechanics
1. Vulnerability Overview & Root Cause
This vulnerability (CVE-2021-36942) is an LSA (Local Security Authority) spoofing flaw within the LSARPC interface of Windows operating systems. Known publicly as 'PetitPotam', the root cause lies in the improper access control and lack of authentication validation when handling specific remote procedure calls via the MS-EFSR (Encrypting File System Remote Protocol). Attackers can abuse these unauthenticated APIs to force the target system to initiate outbound authentication requests.
2. Exploitation Mechanics & Attack Scenario
An unauthenticated attacker on the local network connects to the LSARPC named pipe (\\pipe\\lsarpc or \\pipe\\efsrpc) on a Domain Controller (DC). By invoking specific MS-EFSR methods, such as EfsRpcOpenFileRaw, and passing a UNC path pointing to an attacker-controlled machine (e.g., \\attacker-ip\share\file), the attacker forces the DC's machine account (DC$) to attempt NTLM authentication against the rogue listener. The attacker then captures this NTLM credential exchange and relays it to an administrative service that does not enforce NTLM signing—most commonly the Active Directory Certificate Services (AD CS) Web Enrollment endpoints—to obtain a high-privilege Kerberos Ticket Granting Ticket (TGT), resulting in complete domain compromise.
3. Infrastructure & Business Impact
As a critical vulnerability listed in CISA's Known Exploited Vulnerabilities (KEV) catalog with a high EPSS score, this flaw represents an immediate threat to enterprise infrastructure. Successful exploitation bypasses traditional perimeter defenses and allows lateral movement and privilege escalation to Domain Admin within minutes. This can lead to catastrophic business disruption, deployment of enterprise-wide ransomware, and complete loss of data confidentiality and integrity.
Official Vendor Advisories & References
Windows LSA Spoofing Vulnerability
Frequently Asked SecOps Questions (CVE-2021-36942)
FAQQ1. How critical is CVE-2021-36942 and is it actively exploited in the wild?
CVE-2021-36942 is rated CVSS 7.5 (HIGH) with a 30-day EPSS exploitation probability of 66.0%. It is listed in the CISA Known Exploited Vulnerabilities (KEV) catalog, requiring immediate emergency remediation.
Q2. Which vendors and products are affected by CVE-2021-36942?
Primary impacted vendors include microsoft across windows, windows_server. Scope summary: All supported and legacy versions of Windows and Windows Server, including Windows Server 2008 through 2022, and Windows 7 through 11
Q3. What temporary mitigations or workarounds exist for CVE-2021-36942 before patching?
[Mitigation] Apply the official Microsoft security updates immediately, and configure Extended Protection for Authentication (EPA) alongside SMB signing to block NTLM relay vectors Follow the CLI remediation commands and interactive SecOps checklist on this page to restrict exposure prior to your maintenance window.
Generate an Internal Engineering Notice or CISO Report for CVE-2021-36942
Instantly format this advisory into an executive CISO summary or engineering patch ticket.
🔗 Related Advisories in Similar Stack (microsoft)
View Category →Windows IKE Extension Double Free Remote Code Execution Vulnerability (CVE-2026-33824)
[Affected Scope] Internet Key Exchange (IKE) Extension service running on Microsoft Windows and Windows Server operating systems
Windows Remote Access Connection Manager (RasMan) Null Pointer Dereference Local DoS Vulnerability (CVE-2026-21525) Technical Advisory
[Affected Scope] Windows and Windows Server operating systems utilizing the Windows Remote Access Connection Manager (RasMan) service.
Windows ALPC Heap-Based Buffer Overflow Privilege Escalation Vulnerability (CVE-2026-85880) Security Advisory
[Affected Scope] Locally authenticated users across Microsoft Windows operating systems
Windows Update Stack Privilege Escalation Vulnerability via Link Following (CVE-2026-81963) Technical Advisory
[Affected Scope] Microsoft Windows operating systems utilizing the Windows Update Stack
Subscribe to Daily Vulnerability Briefings & KEV Alerts
Concise morning briefings for SecOps, DevSecOps, and SRE teams covering newly exploited CVEs and mitigation priorities.