Skip to content
RCE Advisory Advanced CVE-2016-3345

Windows SMB Authenticated Remote Code Execution Vulnerability (CVE-2016-3345)

An authenticated attacker could send specially crafted packets to the SMBv1 server on older Windows versions to achieve remote code execution. On later operating systems, the same attack could cause the system to stop responding until manually restarted.

Oleg Kravtsov Follow

Originally disclosed on Microsoft

High 7.3 View original

Description

For Windows Vista, Windows Server 2008, Windows 7, and Windows Server 2008 R2 operating systems, a remote code execution vulnerability exists in the way that the Microsoft Server Message Block 1.0 (SMBv1) Server handles certain requests when an authenticated attacker sends specially crafted packets to the SMBv1 server. The vulnerability does not impact other SMB Server versions. On later operating systems, an attacker who successfully exploited this vulnerability could cause the affected system to stop responding until it is manually restarted. To exploit the vulnerability, an attacker would first need to authenticate to the SMBv1 Server and have permission to open files on the target server before attempting the attack. The security update addresses the vulnerability by correcting how the Microsoft SMBv1 Server handles specially crafted requests.

FAQ

What versions of SMB are impacted by this vulnerability? This vulnerability affects only SMBv1. What is the difference between SMBv1 and SMBv2? Both protocols are used by clients to request file and print services from a server system over the network. Both are stateful protocols in which clients establish a connection to a server, establish an authenticated context on that connection, and then issue a variety of requests to access files, printers, and named pipes for interprocess communication. The SMBv2 protocol is a major revision of the existing SMB protocol. While many of the underlying concepts are the same, the packet formats are completely different. In addition to providing all of the capabilities found in SMBv1, the SMBv2 protocol provides several enhancements: Allowing an open to a file to be reestablished after a client connection becomes temporarily disconnected. Allowing the server to balance the number of simultaneous operations that a client can have outstanding at any time. Providing scalability in terms of the number of shares, users, and simultaneously open files. Supporting symbolic links. Using a stronger algorithm to validate the integrity of requests and responses.

Windows SMB Server

Windows SMB Server

Microsoft

Microsoft

Customer Action Required

Yes

The original report as published on the Microsoft Security Response Center, by Oleg Kravtsov of Tuxera Inc. Images and videos are our own copies; raw HTML is shown as text. View it on Microsoft Security Response Center.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the SMBv1 server did not properly validate specially crafted requests, leading to memory corruption.

Impact

On Windows Vista, Server 2008, Windows 7, and Server 2008 R2, an authenticated attacker with file-open permission could execute code remotely; on later systems, the same attack could cause a denial of service until a manual restart.

What the attacker needed

Authenticated access to SMBv1 server; permission to open files on target

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

SMB is a protocol used by Windows to share files and printers over a network. In this case, a person who already had a valid login and permission to open files could send malformed requests to the file-sharing service and make the server run their code. The flaw only affected the old version of the protocol, SMBv1.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

More from Microsoft

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.