Vulnerability Details : CVE-2017-0146
The SMBv1 server in Microsoft Windows Vista SP2; Windows Server 2008 SP2 and R2 SP1; Windows 7 SP1; Windows 8.1; Windows Server 2012 Gold and R2; Windows RT 8.1; and Windows 10 Gold, 1511, and 1607; and Windows Server 2016 allows remote attackers to execute arbitrary code via crafted packets, aka "Windows SMB Remote Code Execution Vulnerability." This vulnerability is different from those described in CVE-2017-0143, CVE-2017-0144, CVE-2017-0145, and CVE-2017-0148.
Vulnerability category: Input validationExecute code
At least one public exploit which can be used to exploit this vulnerability exists!
CVE-2017-0146
is in the CISA Known Exploited Vulnerabilities Catalog
CISA vulnerability name:
Microsoft Windows SMB Remote Code Execution Vulnerability
CISA required action:
Apply updates per vendor instructions.
CISA description:
The SMBv1 server in Microsoft Windows allows remote attackers to perform remote code execution.
Added on
2022-03-25
Action due date
2022-04-15
Exploit prediction scoring system (EPSS) score for CVE-2017-0146
Probability of exploitation activity in the next 30 days: 97.18%
Percentile, the proportion of vulnerabilities that are scored at or less: ~ 100 % EPSS Score History EPSS FAQ
Metasploit modules for CVE-2017-0146
-
SMB DOUBLEPULSAR Remote Code Execution
Disclosure Date : 2017-04-14exploit/windows/smb/smb_doublepulsar_rceThis module executes a Metasploit payload against the Equation Group's DOUBLEPULSAR implant for SMB as popularly deployed by ETERNALBLUE. While this module primarily performs code execution against the implant, the "Neutralize implant" target allows you to disable the implant. Authors: - Equation Group - Shadow Brokers - zerosum0x0 - Luke Jennings - wvu <[email protected]> - Jacob Robles -
MS17-010 EternalRomance/EternalSynergy/EternalChampion SMB Remote Windows Command Execution
Disclosure Date : 2017-03-14auxiliary/admin/smb/ms17_010_commandThis module will exploit SMB with vulnerabilities in MS17-010 to achieve a write-what-where primitive. This will then be used to overwrite the connection session information with as an Administrator session. From there, the normal psexec command execution is done. Exploits a type confusion between Transaction and WriteAndX requests and a race condition in Transaction requests, as seen in the EternalRomance, EternalChampion, and EternalSynergy exploits. This exploit chain is more reliable than the EternalBlue exploit, but requires a named pipe. Authors: - sleepya - zerosum0x0 - Shadow Brokers - Equation Group -
MS17-010 EternalBlue SMB Remote Windows Kernel Pool Corruption
Disclosure Date : 2017-03-14exploit/windows/smb/ms17_010_eternalblueThis module is a port of the Equation Group ETERNALBLUE exploit, part of the FuzzBunch toolkit released by Shadow Brokers. There is a buffer overflow memmove operation in Srv!SrvOs2FeaToNt. The size is calculated in Srv!SrvOs2FeaListSizeToNt, with mathematical error where a DWORD is subtracted into a WORD. The kernel pool is groomed so that overflow is well laid-out to overwrite an SMBv1 buffer. Actual RIP hijack is later completed in srvnet!SrvNetWskReceiveComplete. This exploit, like the original may not trigger 100% of the time, and should be run continuously until triggered. It seems like the pool will get hot streaks and need a cool down period before the shells rain in again. The module will attempt to use Anonymous login, by default, to authenticate to perform the exploit. If the user supplies credentials in the SMBUser, SMBPass, and SMBDomain options it wi -
MS17-010 EternalRomance/EternalSynergy/EternalChampion SMB Remote Windows Code Execution
Disclosure Date : 2017-03-14exploit/windows/smb/ms17_010_psexecThis module will exploit SMB with vulnerabilities in MS17-010 to achieve a write-what-where primitive. This will then be used to overwrite the connection session information with as an Administrator session. From there, the normal psexec payload code execution is done. Exploits a type confusion between Transaction and WriteAndX requests and a race condition in Transaction requests, as seen in the EternalRomance, EternalChampion, and EternalSynergy exploits. This exploit chain is more reliable than the EternalBlue exploit, but requires a named pipe. Authors: - sleepya - zerosum0x0 - Shadow Brokers - Equation Group -
MS17-010 SMB RCE Detection
auxiliary/scanner/smb/smb_ms17_010Uses information disclosure to determine if MS17-010 has been patched or not. Specifically, it connects to the IPC$ tree and attempts a transaction on FID 0. If the status returned is "STATUS_INSUFF_SERVER_RESOURCES", the machine does not have the MS17-010 patch. If the machine is missing the MS17-010 patch, the module will check for an existing DoublePulsar (ring 0 shellcode/malware) infection. This module does not require valid SMB credentials in default server configurations. It can log on as the user "\" and connect to IPC$. Authors: - Sean Dillon <[email protected]> - Luke Jennings
CVSS scores for CVE-2017-0146
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Source |
---|---|---|---|---|---|
9.3
|
HIGH | AV:N/AC:M/Au:N/C:C/I:C/A:C |
8.6
|
10.0
|
[email protected] |
8.1
|
HIGH | CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
2.2
|
5.9
|
[email protected] |
CWE ids for CVE-2017-0146
-
The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.Assigned by: [email protected] (Primary)
References for CVE-2017-0146
-
https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2017-0146
Patch;Vendor Advisory
- http://packetstormsecurity.com/files/156196/SMB-DOUBLEPULSAR-Remote-Code-Execution.html
- https://ics-cert.us-cert.gov/advisories/ICSMA-18-058-02
- http://packetstormsecurity.com/files/154690/DOUBLEPULSAR-Payload-Execution-Neutralization.html
- https://www.exploit-db.com/exploits/41987/
- https://www.exploit-db.com/exploits/43970/
- http://www.securitytracker.com/id/1037991
-
http://www.securityfocus.com/bid/96707
- https://cert-portal.siemens.com/productcert/pdf/ssa-966341.pdf
- https://cert-portal.siemens.com/productcert/pdf/ssa-701903.pdf
- https://www.exploit-db.com/exploits/41891/
Products affected by CVE-2017-0146
- cpe:2.3:a:microsoft:server_message_block:1.0:*:*:*:*:*:*:*When used together with: Microsoft » Windows 10When used together with: Microsoft » Windows 8.1