CVE DatabaseCVE-2021-31199
한국어 권고문 →
CVE-2021-311995.2/MEDIUMCISA KEV

Microsoft Enhanced Cryptographic Provider Elevation of Privilege Vulnerability (CVE-2021-31199) Analysis and Mitigation Guide

⚡ Jump to Patch
Affected Vendors
microsoft
Affected Components
windows, enhanced cryptographic provider
Published Date
2021-06-08
CVSS v3.1
5.2
MEDIUM
EPSS (30d)
3.0%
FIRST.org
CISA KEV
Exploited

Executive & SecOps Summary

SECOPS ASSESSMENT
Affected Scope

Systems running Windows 7, 8.1, 10, and Windows Server 2008, 2012, 2016, 2019, 2022 utilizing the Microsoft Enhanced Cryptographic Provider

Impact

Local attackers can elevate privileges from a low-privileged account to SYSTEM level, leading to complete system compromise

Mitigation

Immediately apply the official Microsoft security patches and restrict local access privileges on unpatched systems

Affected Products & Version Scope

Windows 7, 8.1, 10, 11 and Windows Server 2008, 2012, 2016, 2019, 2022 including supported and legacy Windows operating systems

Remediation & Live Workaround Commands

PATCH & WORKAROUND

1. Official Patch & Version Upgrade Commands

Apply the latest cumulative security updates provided by Microsoft. You can force the update installation using PowerShell as shown below:

powershell
# Install and import the PSWindowsUpdate module to apply security patches
Install-Module PSWindowsUpdate -Force -Verbose
Get-WindowsUpdate -AcceptAll -Install -AutoReboot

2. Temporary Workaround & Hardening Configuration

If immediate patching is not feasible, restrict local logon privileges and audit access control lists (ACLs) on critical cryptographic DLLs to prevent unauthorized manipulation.

powershell
# Verify and audit ACLs on the cryptographic provider library
$Path = 'C:\Windows\System32\rsaenh.dll'
$Acl = Get-Acl $Path
$Acl.Access | Where-Object { $_.IdentityReference -like '*Users*' } | Format-Table

3. Log Audit & IoC Verification Commands

Check the file version of rsaenh.dll to verify patch status and monitor the Windows Security Event Log for suspicious process creations indicating privilege escalation.

powershell
# Check the file version of rsaenh.dll to confirm patch application
$FileVersion = (Get-Item 'C:\Windows\System32\rsaenh.dll').VersionInfo.FileVersion
Write-Output 'Current rsaenh.dll File Version: ' $FileVersion

# Audit Security Event ID 4688 (Process Creation) for suspicious elevated shells
Get-WinEvent -FilterHashtable @{LogName='Security'; ID=4688} -MaxEvents 50 | 
    Where-Object { $_.Message -like '*cmd.exe*' -or $_.Message -like '*powershell.exe*' } | 
    Select-Object TimeCreated, Id, Message | Format-List
Interactive SecOps Remediation Checklist
0/4 (0%)
Recommended Security Control & Mitigation Partner
SentinelOne Singularity AI EDR
Due to active exploitation in the wild, immediately apply the official Microsoft security updates to mitigate the risk of local privilege escalation.

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-31199) is an elevation of privilege vulnerability existing in the 'Microsoft Enhanced Cryptographic Provider' within the Windows operating system. The root cause lies in the improper handling of memory objects and lack of robust input validation when high-privileged system services or the kernel interact with the cryptographic provider libraries. Local attackers can exploit this flaw to trigger memory corruption and hijack the execution flow.

2. Exploitation Mechanics & Attack Scenario

To exploit this vulnerability, an attacker must first gain local access to the target system with low-privileged user credentials. The attacker then executes a specially crafted application that makes malicious API calls to the cryptographic provider module (such as rsaenh.dll). This triggers a memory corruption state, allowing the attacker to execute arbitrary code under the security context of the SYSTEM account. Since this vulnerability is actively exploited in the wild (listed in CISA KEV), immediate remediation is critical.

3. Infrastructure & Business Impact

Successful exploitation grants the attacker full administrative control (SYSTEM privileges) over the compromised host. This enables them to bypass endpoint security controls, dump credentials (e.g., LSASS), establish persistence, and perform lateral movement across the enterprise network, posing a severe threat to active directory environments and critical servers.

Official Vendor Advisories & References

Frequently Asked SecOps Questions (CVE-2021-31199)

FAQ

Q1. How critical is CVE-2021-31199 and is it actively exploited in the wild?

CVE-2021-31199 is rated CVSS 5.2 (MEDIUM) with a 30-day EPSS exploitation probability of 3.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-31199?

Primary impacted vendors include microsoft across windows, enhanced cryptographic provider. Scope summary: Windows 7, 8.1, 10, 11 and Windows Server 2008, 2012, 2016, 2019, 2022 including supported and legacy Windows operating systems

Q3. What temporary mitigations or workarounds exist for CVE-2021-31199 before patching?

[Mitigation] Immediately apply the official Microsoft security patches and restrict local access privileges on unpatched systems 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-31199

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-31199 Microsoft Enhanced Cryptographic Provider Elevation of Privilege Vulnerability (CVE-2021-31199) Analysis and Mitigation Guide (CVSS 5.2) - Patch & Workaround | CVE Pulse