Skip to main content
Mallory
HighExploited in the wildCISA KEVPublic exploitVulnerability

CVE-2021-36942: PetitPotam (Windows LSA Spoofing)

Published Aug 12, 2021 · Updated 1 month ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS7.5High · v3.1
EPSS66.0%99th percentile
CISA KEVYesAdded Nov 3, 2021
In the wildActivePer CISA KEV
Vendor
Microsoft Corporation
IdentifiersCVE-2021-36942CWE-294
Also known aspetitpotam

CVE-2021-36942 is a Windows Local Security Authority spoofing vulnerability associated with the PetitPotam authentication-coercion technique. PetitPotam abuses Encrypting File System Remote Protocol (EFSRPC) operations, including EfsRpcOpenFileRaw, to force a Windows host to authenticate to an attacker-controlled system. The resulting NTLM authentication can be relayed to a susceptible service, including Active Directory Certificate Services (AD CS), enabling impersonation and potentially domain compromise. Microsoft's August 2021 update addressed unauthenticated coercion through the LSA RPC interface, but did not eliminate all authenticated EFSRPC coercion techniques. EfsPotato local privilege-escalation activity has also been associated with this CVE, although that exploitation path has different prerequisites from remote NTLM relay.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation can expose Windows server authentication material and enable NTLM relay, unauthorized access, and privilege escalation. When a domain controller's authentication is relayed to a susceptible AD CS enrollment interface, the resulting certificate-based access can contribute to full domain compromise. Related EfsPotato exploitation has been observed elevating local execution to SYSTEM. PetitPotam-related exploitation has been used in intrusion chains preceding domain-wide ransomware deployment; ransomware encryption is a subsequent attacker action, not a direct effect of authentication coercion.

Mitigation

If you can’t patch tonight, do this now.

Disable or restrict NTLM, particularly on AD CS and other sensitive services. Disable unnecessary AD CS web enrollment; where enrollment is required, enforce Extended Protection for Authentication and SSL. Restrict access to RPC interfaces and apply RPC filters where appropriate. Require SMB signing on clients and servers, while recognizing that SMB signing alone does not protect HTTP-based AD CS enrollment from relay. Monitor Windows Security Event ID 5145 for suspicious anonymous LSA RPC access and Event ID 4768 for unusual certificate-backed Kerberos ticket requests; enable the necessary auditing and account for legitimate certificate authentication.

Remediation

Patch, then assume compromise.

Apply Microsoft's August 2021 security update addressing CVE-2021-36942, including KB5005033 where applicable, or the appropriate superseding updates for the installed Windows version. Keep domain controllers and AD CS infrastructure fully updated. The original update blocks specific unauthenticated LSA RPC coercion paths but should not be treated as eliminating all authenticated EFSRPC coercion or NTLM relay exposure.

Public exploits

Exploits

1 exploit validated by Mallory's analysis. Hidden: 1 rejected by Mallory's analysis as not a working exploit.

View more in app →
CVE-2026-24294Repository contains a working exploit chain combining a modified Windows PetitPotam coercion client with a modified Impacket SMB server. The purpose is local NTLM reflection / privilege escalation on Windows Server 2025 by abusing SMB arbitrary-port connections plus SMB session multiplexing. The C++ project under PetitPotam/ is a Visual Studio solution that binds to the EFSRPC interface UUID df1941c5-fe89-4e79-bf10-463657acf44d over the named pipe \\pipe\\efsrpc using ncacn_np. It accepts three arguments: capture server, target server, and EFS API selector. It constructs a UNC path to \\<captureServer>\test\topotam.exe and invokes one of several EFSRPC methods (notably EfsRpcEncryptFileSrv in the README example) against the target. Success is inferred from expected RPC error codes such as ERROR_BAD_NETPATH or ERROR_ACCESS_DENIED, indicating the target attempted outbound access to the attacker-controlled UNC path. The generated files ms-efsrpc_c.c, ms-efsrpc_h.h, ms-dtyp.h, and ms-dtyp_h.h are MIDL-generated RPC client stubs and type definitions supporting the EFSRPC calls. They are not standalone exploit logic but provide the RPC interface implementation used by PetitPotam.cpp. The Python smbserver.py is a modified Impacket SMB server entry point. It adds a -relay-port option and hooks SMB2 SESSION_SETUP handling to capture a second NTLM authentication on an already-established multiplexed SMB connection, then forwards that authentication to a raw relay listener such as ntlmrelayx --raw-port. This turns the coerced authentication into a usable relay/reflection primitive. The README documents the full three-terminal workflow: start ntlmrelayx on raw port 6666 targeting smb://127.0.0.1, start smbserver.py on TCP 12345 with share name test and relay-port 6666, then mount \\127.0.0.1\test using /tcpport:12345 and run PetitPotam.exe 127.0.0.1 localhost 2. Expected outcome is command execution as NT AUTHORITY\SYSTEM. Overall, this is a real exploit repository, not merely detection code. It is operational rather than heavily weaponized: the coercion path/share is partly hardcoded, the workflow is manual, and it relies on external tooling (Impacket ntlmrelayx) for final command execution.0xNDI · Disclosed Apr 30, 2026 · cpp · c · local · network · webOperational
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
Microsoft CorporationWindows Server 2004operating_system
Microsoft CorporationWindows Server 2008operating_system
Microsoft CorporationWindows Server 2008 R2operating_system
Microsoft CorporationWindows Server 2008 Sp2operating_system
Microsoft CorporationWindows Server 2012operating_system
Microsoft CorporationWindows Server 2012 R2operating_system
Microsoft CorporationWindows Server 2016operating_system
Microsoft CorporationWindows Server 2019operating_system
Microsoft CorporationWindows Server 20h2operating_system
FAQ

Frequently asked questions

Is CVE-2021-36942 exploited in the wild?
Yes. As of Oct 16, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Nov 3, 2021.
Is there a public exploit for CVE-2021-36942?
Yes. Mallory tracks 1 public exploit or proof of concept for CVE-2021-36942, the earliest disclosed Apr 30, 2026.
Is there a patch for CVE-2021-36942?
Apply Microsoft's August 2021 security update addressing CVE-2021-36942, including KB5005033 where applicable, or the appropriate superseding updates for the installed Windows version. Keep domain controllers and AD CS infrastructure fully updated.
What products are affected by CVE-2021-36942?
Microsoft Corporation Windows Server 2004, Microsoft Corporation Windows Server 2008, Microsoft Corporation Windows Server 2008 R2, Microsoft Corporation Windows Server 2008 Sp2, Microsoft Corporation Windows Server 2012, and 4 more.
How severe is CVE-2021-36942?
CVE-2021-36942 has a CVSS v3.1 score of 7.5 (High) and an EPSS score of 66.0% (99th percentile) as of Oct 16, 2026.
Activity feed

Recent activity

18 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
infosec writeupsNews · Jul 1, 2026Hack Smarter - City Council (Active Directory) | by rootshellace | Jun, 2026 | InfoSec Write-upsA Windows local privilege escalation vulnerability in MS-EFSR / EfsRpcEncryptFileSrv that can be abused with SeImpersonatePrivilege to obtain elevated privileges, here used to escalate from IIS APPPOOL\DefaultAppPool to NT AUTHORITY\SYSTEM.Read more ↗codebyNews · Jun 3, 2026NTLM Coercion атаки Active Directory - разбор техник 2026The PetitPotam-related Windows LSA spoofing issue involving MS-EFSRPC coercion that can force NTLM authentication from a target, especially domain controllers, and has partial mitigations but remains usable in authenticated scenarios per the content.Read more ↗codebyNews · May 25, 2026NTLM coercion атаки 2026: .lnk, WebDAV и обход signingWindows LSA Spoofing vulnerability associated here with PetitPotam/EFSRPC coercion behavior. The content says patches such as KB5005033 mitigated unauthenticated EFSRPC calls via LSARPC, though authenticated variants may still work in some environments.Read more ↗splunk researchNews · Feb 25, 2026Detection: PetitPotam Suspicious Kerberos TGT Request | Splunk Security ContentPetitPotam, tracked as CVE-2021-36942 in the content, is described as a vulnerability whose exploitation can enable attackers to leverage a compromised certificate to request Kerberos tickets, potentially leading to unauthorized access, privilege escalation, and persistence.Read more ↗
+9 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidence9Every report linking this CVE to a named adversary.
Associated malware20Malware families linked to this CVE, with evidence and IOCs.
Detection signatures3YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity2Community discussion across Reddit, Mastodon, and other social sources.