module

SMBv3 Compression Buffer Overflow

Disclosed
Mar 13, 2020
Created
May 21, 2021

Description

A vulnerability exists within the Microsoft Server Message Block 3.1.1 (SMBv3) protocol that can be leveraged to
execute code on a vulnerable server. This remove exploit implementation leverages this flaw to execute code
in the context of the kernel, finally yielding a session as NT AUTHORITY\SYSTEM in spoolsv.exe. Exploitation
can take a few minutes as the necessary data is gathered.

Authors

hugeh0ge
chompie1337
Spencer McIntyre

Platform

Windows

Architectures

x64

Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':


msf > use exploit/windows/smb/cve_2020_0796_smbghost
msf exploit(cve_2020_0796_smbghost) > show targets
...targets...
msf exploit(cve_2020_0796_smbghost) > set TARGET < target-id >
msf exploit(cve_2020_0796_smbghost) > show options
...show and set options...
msf exploit(cve_2020_0796_smbghost) > exploit

Title
Rapid7 Labs

2026 Global Threat Landscape Report

The predictive window has collapsed. Exploitation follows disclosure in days. See how attackers are accelerating and how to stay ahead.