Windows Print Spooler Remote Code Execution Vulnerability (CVE-2021-34481)
The Windows Print Spooler service performed privileged file operations improperly, allowing an attacker to run arbitrary code with SYSTEM privileges. Microsoft later revised the impact from elevation of privilege to remote code execution after learning of a remote attack scenario.
Originally disclosed on Microsoft
Description
A remote code execution vulnerability exists when the Windows Print Spooler service improperly performs privileged file operations. An attacker who successfully exploited this vulnerability could run arbitrary code with SYSTEM privileges. An attacker could then install programs; view, change, or delete data; or create new accounts with full user rights. UPDATE August 10, 2021: Microsoft has completed the investigation and has released security updates to address this vulnerability. Please see the Security Updates table for the applicable update for your system. We recommend that you install these updates immediately. This security update changes the Point and Print default behavior; please see KB5005652 .
FAQ
Why did the security impact change from elevation of privilege to remote code execution? We became aware of a remote attack scenario for this vulnerability and revised our assessment accordingly. Did the July 2021 security update introduce this vulnerability? No, the vulnerability existed before the July 13, 2021 security update. We recommend that Microsoft customers install the latest security updates. Why did the Point and Print default behavior change? Please see KB5005652 .
Windows Print Spooler Components
Windows Print Spooler Components
Microsoft
Microsoft
Customer Action Required
Yes
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 Print Spooler service performed privileged file operations without properly validating or restricting what it acted on, letting an attacker influence those operations.
Impact
An attacker could run arbitrary code with SYSTEM privileges, then install programs, view, change or delete data, or create accounts with full user rights; Microsoft initially rated it elevation of privilege and later revised it to remote code execution.
What the attacker needed
Unpatched Windows system; attacker can reach the Print Spooler
The fix
Microsoft released security updates that address the vulnerability and also changed the Point and Print default behaviour; users should install the updates.
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 printing. It was doing some file operations with high trust, and an attacker could abuse that to run their own code as the most powerful local account on the machine. That means they could then install software or change data.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.