CVE DatabaseCVE-2021-36942
한국어 권고문 →
CVE-2021-369427.5/HIGHCISA KEV

Windows LSA Spoofing Vulnerability (CVE-2021-36942, PetitPotam) Technical Analysis and Mitigation Guide

⚡ Jump to Patch
Affected Vendors
microsoft
Affected Components
windows, windows_server
Published Date
2021-08-12
CVSS v3.1
7.5
HIGH
EPSS (30d)
66.0%
FIRST.org
CISA KEV
Exploited

Executive & SecOps Summary

SECOPS ASSESSMENT
Affected Scope

Windows and Windows Server operating systems, particularly Active Directory Domain Controllers

Impact

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

Mitigation

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

All supported and legacy versions of Windows and Windows Server, including Windows Server 2008 through 2022, and Windows 7 through 11

Remediation & Live Workaround Commands

PATCH & WORKAROUND

1. 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.

powershell
# Install and force Windows Update for cumulative security patches
Install-Module PSWindowsUpdate -Force -Verbose
Get-WindowsUpdate -Category 'Security Updates' -AcceptAll -Install -AutoReboot

2. 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.

powershell
# 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.

powershell
# 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 -Wrap
Interactive SecOps Remediation Checklist
0/4 (0%)
Recommended Security Control & Mitigation Partner
SentinelOne Singularity AI EDR
Immediately apply Microsoft's cumulative security updates and harden Active Directory Certificate Services against NTLM relay attacks.

Block 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.

100% MITRE ATT&CK Detection · 1-Click Rollback

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

Frequently Asked SecOps Questions (CVE-2021-36942)

FAQ

Q1. 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.

SECOPS WORKBENCH INTEGRATION

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.

Generate Report →

🔗 Related Advisories in Similar Stack (microsoft)

View Category →
SecOps Advisory Dispatch & RSS Feed

Subscribe to Daily Vulnerability Briefings & KEV Alerts

Concise morning briefings for SecOps, DevSecOps, and SRE teams covering newly exploited CVEs and mitigation priorities.

Slack / Teams / RSS Feed:
PatchKO
CVE-2021-36942 Windows LSA Spoofing Vulnerability (CVE-2021-36942, PetitPotam) Technical Analysis and Mitigation Guide (CVSS 7.5) - Patch & Workaround | CVE Pulse