Skip to content
RCE Advisory Advanced CVE-2016-3238

Windows Print Spooler Remote Code Execution Vulnerability (CVE-2016-3238)

The Windows Print Spooler service did not properly validate print drivers when installing a printer from a server. An attacker who could intercept traffic or run a rogue print server could execute arbitrary code and take control of the affected system.

Nicolas Beauchesne Follow

Originally disclosed on Microsoft

Critical 8.8 View original

Description

A remote code execution vulnerability exists when the Windows Print Spooler service does not properly validate print drivers while installing a printer from servers. An attacker who successfully exploited this vulnerability could use it to execute arbitrary code and take control of an affected system. An attacker could then install programs; view, change, or delete data; or create new accounts with full user rights. Users whose accounts are configured to have fewer user rights on the system could be less impacted than users who operate with administrative user rights. To exploit this vulnerability, an attacker must be able to execute a man-in-the-middle ( MiTM ) attack on a workstation or print server or set up a rogue print server on a target network. The update addresses the vulnerability by issuing a warning to users who attempt to install untrusted printer drivers.

Windows Print Spooler Components

Windows Print Spooler Components

The original report as published on the Microsoft Security Response Center, by Nicolas Beauchesne of Vectra Networks. 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 spooler installed printer drivers supplied by a server without adequately validating their trustworthiness before loading them.

Impact

An attacker able to intercept traffic or host a rogue print server could execute arbitrary code and take full control of the system, though accounts with fewer rights would be less affected.

What the attacker needed

Man-in-the-middle position on the network; or a rogue print server on the network

The fix

The update was fixed by warning users when they try to install untrusted printer drivers.

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.

The print spooler is the Windows component that manages printers. It trusted the driver files offered by a print server without checking them properly, so someone pretending to be that server could send a malicious driver that runs code on the victim's machine. The attacker first needs to sit between the victim and the server, or run a fake print server on the same network.

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.