CVE-2021-31201
Medium · 5.2 CISA KEVCVSS
5.2
EPSS
2.6%
Published
Jun 8, 2021
CISA due date
Nov 17, 2021
Cloudanix analysis
An attacker who already gets onto an unpatched Windows computer could use this flaw to gain more control over that machine.
- Exploitation
- Local Privilege
- Attacker needs
- Low Privilege
- Complexity
- Low
- Impact
- Privilege Gain
- Component
- Library
- Class
- Privilege Escalation
- Remediation
- Patch
- Effort
- Low
- Patch risk
- Low
What it actually does
CVE-2021-31201 is a local elevation-of-privilege vulnerability in the Microsoft Enhanced Cryptographic Provider on affected Windows client and server versions. An attacker who already has local code execution with a low-privileged account can exploit the flaw to cross a Windows security boundary and gain increased privileges, enabling limited unauthorized access to data or modification of protected system state. It is not a remote initial-access vulnerability by itself; exploitation requires prior local access or code execution on the target host.
Why it matters to the business
Successful exploitation can turn an initial low-privilege foothold into a more powerful compromise on Windows workstations or servers, increasing the likelihood of credential theft, lateral movement, persistence, tampering with security controls, and broader operational disruption. The vulnerability is listed in CISA KEV with active exploitation observed in the wild and a remediation due date of 2021-11-17, so any remaining unpatched systems should be treated as overdue and high-priority despite the moderate CVSS score.
How an attack unfolds
An attacker first obtains local execution on an affected Windows system, commonly through phishing malware, stolen credentials, exposed remote access, exploitation of another application, or a web shell on a Windows server. Once running as a low-privileged user or service account, the attacker invokes the vulnerable Microsoft Enhanced Cryptographic Provider behavior to trigger the privilege-escalation condition. If successful, the attacker gains execution in a higher-privileged security context or bypasses intended access restrictions. They can then use the elevated context to access protected files, dump or abuse credentials, disable defenses, install persistence, or move laterally. Because this vulnerability has been added to the Known Exploited Vulnerabilities catalog, defenders should assume public or private exploitation techniques have been operationalized and should pair patching with endpoint hunting for post-exploitation behavior.
How to fix it
Apply the Microsoft security updates that address CVE-2021-31201 for all affected Windows versions. In practice, systems should be updated to the June 2021 security update level or any later cumulative update supported for the installed Windows release. Prioritize Windows 10, Windows 7/8.1 where still present, Windows Server 2008/2012/2016/2019, and semi-annual server releases listed as affected. Where immediate patching is not possible, reduce risk by removing unnecessary local accounts, enforcing least privilege, restricting interactive logon and remote access, hardening endpoint controls, monitoring for local privilege-escalation behavior, and isolating high-risk legacy systems until they can be updated or retired.
How to confirm the fix worked
Confirm remediation by verifying that each affected Windows host has installed the relevant June 2021 or later Microsoft cumulative/security update for its Windows version. Use enterprise patch management, vulnerability scanning, or authenticated configuration assessment to validate OS build and installed update state. For manual checks, review installed hotfixes and cumulative update history using Windows Update history, DISM, PowerShell Get-HotFix, or endpoint management inventory. Also validate that unsupported Windows versions are either covered by applicable extended security updates, isolated with compensating controls, or decommissioned.
Typical attack path
- Gain initial local code execution on an affected Windows host using a separate technique such as phishing, credential misuse, exposed remote access, or exploitation of another service.
- Confirm the host is running an affected Windows version and lacks the Microsoft security update that remediates the Enhanced Cryptographic Provider vulnerability.
- Execute a local exploit that abuses the vulnerable cryptographic provider behavior from a low-privileged user context.
- Obtain elevated privileges or access across a local Windows security boundary.
- Use the elevated context to access protected resources, collect credentials, weaken security controls, establish persistence, or support lateral movement.
How to detect it
This is a local privilege-escalation issue, so exploitation usually leaves few network indicators and is best detected through endpoint, Windows event, and EDR telemetry. Review systems that were unpatched after June 2021 for suspicious transitions from low-privileged execution to elevated activity. Relevant sources include Windows Security logs, Sysmon or EDR process telemetry, service creation events, scheduled task creation, local group membership changes, PowerShell logs, Windows Defender or other AV/EDR detections, and authentication logs. Look for low-privileged user processes spawning administrative shells or tools, unexpected creation of services or scheduled tasks, new local administrator membership, credential-dumping behavior, tampering with security products, and lateral movement shortly after suspicious local execution. Because no reliable public exploit-specific artifact is provided in the input, detection should focus on post-exploitation behaviors rather than a single file name, registry key, or network signature.
What your security team should do
- Treat any unpatched affected Windows systems as urgent remediation targets because this vulnerability is in CISA KEV and has been exploited in the wild; the federal remediation deadline of 2021-11-17 has long passed.
- Patch or retire unsupported Windows versions first, especially internet-facing servers, remote-access systems, domain-joined servers, administrator workstations, and systems handling sensitive data.
- Run authenticated vulnerability scans or patch-compliance checks to identify hosts missing the June 2021 or later Microsoft security updates that remediate the issue.
- Hunt for signs of prior compromise on systems that were exposed while unpatched, focusing on suspicious privilege changes, new services, credential access tooling, defense evasion, and lateral movement after low-privilege process execution.
- Enforce least privilege for users and service accounts, remove unnecessary local administrator rights, and monitor additions to privileged local or domain groups.
- Correlate this vulnerability with other initial-access findings; because exploitation requires local access, prioritize hosts that also show malware alerts, suspicious logons, web shell activity, or remote-access anomalies.
- Ensure endpoint detection and response telemetry is retained long enough to investigate historical exploitation attempts and post-exploitation activity.
The record
Microsoft Enhanced Cryptographic Provider Elevation of Privilege Vulnerability
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|