Skip to main content
Mallory
HighExploited in the wildCISA KEVPublic exploitVulnerability

CVE-2021-36942: PetitPotam Windows LSA Authentication Coercion

Published Aug 12, 2021 · Updated today
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days3 mentions · peak 2 in a dayToday
CVSS7.5High · v3.1
EPSS66.0%99th percentile
CISA KEVYesAdded Nov 3, 2021
In the wildActivePer CISA KEV
Vendor
Microsoft Corporation
IdentifiersCVE-2021-36942CWE-287
Also known aspetitpotam

CVE-2021-36942 is a Windows Local Security Authority spoofing vulnerability associated with the PetitPotam authentication-coercion technique. An attacker can abuse the Encrypting File System Remote Protocol (MS-EFSRPC), including EfsRpcOpenFileRaw, to cause a Windows host to initiate NTLM authentication to an attacker-controlled system. The attacker can relay that authentication to another service lacking effective relay protections. A significant exploitation chain targets Active Directory Certificate Services enrollment interfaces to obtain an authentication certificate for the coerced machine account. Coercing a domain controller can consequently enable domain compromise. Microsoft's August 2021 update addressed the unauthenticated LSA-based attack path, but did not eliminate all authenticated EFSRPC coercion techniques.

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 coercion exposes an NTLM authentication exchange that can be relayed to impersonate the affected machine account. When combined with vulnerable AD CS enrollment configurations, attackers can obtain machine-account certificates and use them to request Kerberos tickets. If the impersonated account belongs to a domain controller, the chain can enable directory credential extraction and full domain compromise. Subsequent impacts include lateral movement, persistent certificate-based access, data theft, and domain-wide ransomware deployment. These outcomes depend on downstream services and configuration weaknesses; coercion alone does not directly provide arbitrary code execution.

Mitigation

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

Restrict access to EFSRPC and other unnecessary RPC interfaces through network controls or RPC filtering, and limit outbound authentication from domain controllers and other critical servers to untrusted systems. Require SMB signing for SMB services and LDAP signing and channel binding for LDAP services; these controls do not replace AD CS-specific protections. Monitor anomalous RPC activity, unexpected outbound NTLM authentication, suspicious certificate enrollment, and unusual certificate-based Kerberos ticket requests.

Remediation

Patch, then assume compromise.

Install Microsoft's August 2021 security update addressing CVE-2021-36942, or an applicable superseding cumulative update, on affected Windows systems, particularly domain controllers. Do not treat this update as comprehensive protection against every PetitPotam-style coercion path. Remediate downstream relay exposure by disabling unnecessary AD CS web enrollment interfaces and requiring Extended Protection for Authentication and HTTPS on enrollment services that remain enabled. Disable NTLM authentication on sensitive services wherever feasible.

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 Nov 28, 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?
Install Microsoft's August 2021 security update addressing CVE-2021-36942, or an applicable superseding cumulative update, on affected Windows systems, particularly domain controllers. Do not treat this update as comprehensive protection against every PetitPotam-style coercion path.
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 Nov 28, 2026.
Activity feed

Recent activity

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

View more in app →
+12 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 malware21Malware 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.