CVE DatabaseCVE-2020-0796
한국어 권고문 →
CVE-2020-079610.0/CRITICALCISA KEVCWE-119CWE-119

Microsoft Windows SMBv3 Remote Code Execution and Privilege Escalation Vulnerability (SMBGhost, CVE-2020-0796) Technical Advisory

⚡ Jump to Patch
Affected Vendors
microsoft
Affected Components
windows, windows_server
Published Date
2020-03-12
CVSS v3.1
10.0
CRITICAL
EPSS (30d)
99.8%
FIRST.org
CISA KEV
Exploited

Executive & SecOps Summary

SECOPS ASSESSMENT
Affected Scope

Microsoft Windows 10 (versions 1903, 1909) and Windows Server (versions 1903, 1909) running the SMBv3 (Server Message Block 3.1.1) protocol

Impact

Unauthenticated remote attackers can execute arbitrary code with kernel privileges (RCE) or escalate local privileges (LPE) by sending specially crafted packets, enabling wormable self-propagation across networks

Mitigation

Apply official Microsoft security patches immediately, or implement workarounds such as disabling SMBv3 compression and blocking inbound TCP port 445

Affected Products & Version Scope

Windows 10 versions 1903 & 1909 (32-bit, 64-bit, ARM64), and Windows Server versions 1903 & 1909 (Server Core installations)

Remediation & Live Workaround Commands

PATCH & WORKAROUND

1. Official Patch & Version Upgrade Commands

The primary remediation is to apply the official security updates provided by Microsoft. Use the following PowerShell commands to verify your OS version and force-install the latest updates.

powershell
# Check current OS version and build details
Get-ComputerInfo | Select-Object OsName, OsVersion, OsBuildNumber

# Install Windows Update module and apply pending security patches
Install-Module PSWindowsUpdate -Force -Verbose
Get-WindowsUpdate -AcceptAll -Install -AutoReboot

2. Temporary Workaround & Hardening Configuration

If patching cannot be performed immediately, disable SMBv3 compression to block the attack vector. This workaround does not require a reboot and affects only the SMB server role.

powershell
# Disable SMBv3 compression to mitigate the vulnerability
Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters' -Name DisableCompression -Type DWord -Value 1

# Block inbound SMB traffic (TCP Port 445) at the host firewall level
New-NetFirewallRule -DisplayName 'Block Inbound SMB TCP 445' -Direction Inbound -Action Block -Protocol TCP -LocalPort 445

3. Log Audit & IoC Verification Commands

Verify whether the workaround is active and inspect system event logs for potential crashes or BSODs related to the vulnerable driver (srv2.sys).

powershell
# Verify if SMBv3 compression is disabled (Value should return 1)
Get-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters' -Name DisableCompression -ErrorAction SilentlyContinue

# Query system event logs for bugchecks or crashes associated with srv2.sys
Get-WinEvent -FilterHashtable @{LogName='System'; Id=1001} -ErrorAction SilentlyContinue | Where-Object {$_.Message -like '*srv2.sys*' -or $_.Message -like '*bugcheck*'}
Interactive SecOps Remediation Checklist
0/4 (0%)
Recommended Security Control & Mitigation Partner
SentinelOne Singularity AI EDR
Immediately apply the latest Microsoft cumulative security updates to all Windows 10 and Windows Server systems, or disable SMBv3 compression as an emergency workaround.

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, widely known as 'SMBGhost', is a buffer overflow vulnerability (CWE-119) residing in the way Microsoft Server Message Block 3.1.1 (SMBv3) handles compressed data packets. When an SMBv3 client or server decompresses a network packet, an integer overflow occurs during the calculation of the decompressed buffer size. This leads to an out-of-bounds write, allowing arbitrary data to overwrite adjacent kernel memory spaces.

2. Exploitation Mechanics & Attack Scenario

An unauthenticated attacker can exploit this vulnerability by sending a specially crafted packet containing a malicious compression header to a target SMBv3 server listening on TCP port 445. The decompression routine in the srv2.sys driver processes this packet, triggering the buffer overflow in kernel space. Because this occurs during the pre-authentication phase, no valid credentials are required. Attackers can leverage this to achieve Remote Code Execution (RCE) or execute Local Privilege Escalation (LPE) payloads. The flaw is highly critical due to its 'wormable' nature, allowing lateral movement without user interaction.

3. Infrastructure & Business Impact

With a CVSS score of 10.0 and active exploitation confirmed via its inclusion in the CISA KEV catalog, SMBGhost poses an extreme risk to enterprise environments. A single compromised host can serve as a beachhead for attackers to rapidly propagate malware, such as ransomware, across the entire internal network. This can lead to complete domain compromise, massive data exfiltration, and catastrophic operational downtime.

Official Vendor Advisories & References

Frequently Asked SecOps Questions (CVE-2020-0796)

FAQ

Q1. How critical is CVE-2020-0796 and is it actively exploited in the wild?

CVE-2020-0796 is rated CVSS 10.0 (CRITICAL) with a 30-day EPSS exploitation probability of 99.8%. It is listed in the CISA Known Exploited Vulnerabilities (KEV) catalog, requiring immediate emergency remediation.

Q2. Which vendors and products are affected by CVE-2020-0796?

Primary impacted vendors include microsoft across windows, windows_server. Scope summary: Windows 10 versions 1903 & 1909 (32-bit, 64-bit, ARM64), and Windows Server versions 1903 & 1909 (Server Core installations)

Q3. What temporary mitigations or workarounds exist for CVE-2020-0796 before patching?

[Mitigation] Apply official Microsoft security patches immediately, or implement workarounds such as disabling SMBv3 compression and blocking inbound TCP port 445 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-2020-0796

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-2020-0796 Microsoft Windows SMBv3 Remote Code Execution and Privilege Escalation Vulnerability (SMBGhost, CVE-2020-0796) Technical Advisory (CVSS 10.0) - Patch & Workaround | CVE Pulse