CVE DatabaseCVE-2021-31979
한국어 권고문 →
CVE-2021-319797.8/HIGHCISA KEVCWE-119CWE-119

Windows Kernel Elevation of Privilege Vulnerability (CVE-2021-31979) Security Advisory

⚡ Jump to Patch
Affected Vendors
microsoft
Affected Components
windows, windows_server
Published Date
2021-07-14
CVSS v3.1
7.8
HIGH
EPSS (30d)
4.5%
FIRST.org
CISA KEV
Exploited

Executive & SecOps Summary

SECOPS ASSESSMENT
Affected Scope

Supported Windows operating system kernels, including Windows 10, Windows 11, and Windows Server 2016/2019/2022

Impact

A local attacker with low privileges can trigger memory corruption (CWE-119) in the kernel to execute arbitrary code with SYSTEM privileges

Mitigation

Immediately apply the official Microsoft Cumulative Updates (LCU) and monitor for local privilege escalation indicators

Affected Products & Version Scope

Windows 10, Windows 11, Windows Server 2016, 2019, 2022, and legacy Windows operating system kernels

Remediation & Live Workaround Commands

PATCH & WORKAROUND

1. Official Patch & Version Upgrade Commands

Apply the latest Cumulative Update (LCU) provided by Microsoft. You can force the update installation remotely using PowerShell.

powershell
# Install PSWindowsUpdate module and apply all pending security updates
Install-Module PSWindowsUpdate -Force -Verbose
Get-WindowsUpdate -AcceptAll -Install -AutoReboot

2. Temporary Workaround & Hardening Configuration

While there is no direct workaround other than applying the official patch, you can reduce the attack surface by disabling remote access services and restricting unauthorized binary execution using AppLocker.

powershell
# Disable WinRM service to prevent remote shell access
Disable-PSRemoting -Force
Stop-Service -Name 'WinRM'
Set-Service -Name 'WinRM' -StartupType Disabled

3. Log Audit & IoC Verification Commands

Run the following PowerShell script to verify if the required security updates are installed on the system.

powershell
# Check for the presence of June 2021 (or later) security updates
$KBInstalled = Get-HotFix | Where-Object { $_.HotFixID -match 'KB5003637|KB5003646|KB5003697' }
if ($KBInstalled) {
    Write-Host 'System is patched against CVE-2021-31979.' -ForegroundColor Green
} else {
    Write-Warning 'System might be vulnerable. Please apply the latest cumulative updates immediately.'
}
Interactive SecOps Remediation Checklist
0/4 (0%)
Recommended Security Control & Mitigation Partner
SentinelOne Singularity AI EDR
Since this vulnerability is actively exploited in the wild (CISA KEV), immediately apply the latest Windows cumulative security updates.

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-31979) is an elevation of privilege (EoP) vulnerability in the Windows kernel caused by improper handling of memory objects or buffers (CWE-119). A local attacker with basic user privileges can manipulate kernel API calls to trigger out-of-bounds writes or use-after-free conditions in the kernel memory space.

2. Exploitation Mechanics & Attack Scenario

To exploit this vulnerability, an attacker must first gain local execution access on the target system. The attacker then executes a specially crafted user-mode application that interacts with kernel drivers (such as ntoskrnl.exe). By exploiting the kernel's failure to validate buffer sizes or manage object lifecycles, the attacker corrupts the kernel pool memory, hijacks the execution flow, and spawns a shell with SYSTEM privileges. This vulnerability has been actively exploited in the wild and is listed in the CISA KEV catalog.

3. Infrastructure & Business Impact

Successful exploitation allows attackers to gain complete control over the compromised system, including Domain Controllers, database servers, and critical endpoints. This can lead to the disabling of security agents (EDR/AV), credential dumping (LSASS), lateral movement across the internal network, and the deployment of ransomware, posing a severe threat to business continuity.

Official Vendor Advisories & References

Frequently Asked SecOps Questions (CVE-2021-31979)

FAQ

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

CVE-2021-31979 is rated CVSS 7.8 (HIGH) with a 30-day EPSS exploitation probability of 4.5%. 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-31979?

Primary impacted vendors include microsoft across windows, windows_server. Scope summary: Windows 10, Windows 11, Windows Server 2016, 2019, 2022, and legacy Windows operating system kernels

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

[Mitigation] Immediately apply the official Microsoft Cumulative Updates (LCU) and monitor for local privilege escalation indicators 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-31979

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-31979 Windows Kernel Elevation of Privilege Vulnerability (CVE-2021-31979) Security Advisory (CVSS 7.8) - Patch & Workaround | CVE Pulse