Skip to content
RCE Advisory Advanced CVE-2022-30138

Microsoft Windows Print Spooler Service Link Following Local Privilege Escalation Vulnerability

The Print Spooler service on Windows can be tricked into loading an arbitrary DLL by creating a symbolic link. A local attacker with low-privileged code execution could escalate to SYSTEM privileges.

Oliver Lyak Follow

Originally disclosed on Zero Day Initiative

High 7.0 View original

This vulnerability allows local attackers to escalate privileges on affected installations of Microsoft Windows. An attacker must first obtain the ability to execute low-privileged code on the target system in order to exploit this vulnerability.

Oliver Lyak (@ly4k_), on the Zero Day Initiative

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

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 follows symbolic links without proper validation, allowing an attacker to redirect a file load to an arbitrary DLL.

Impact

An attacker could escalate privileges and execute arbitrary code as SYSTEM, but only after already having low-privileged code execution on the target.

What the attacker needed

Low-privileged code execution on target

The fix

Microsoft issued an update to correct this vulnerability.

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.

This is a local privilege escalation bug in Windows. A symbolic link is like a shortcut that points to another file. The Print Spooler service can be fooled into loading a malicious DLL (a library file) instead of the intended one, letting an attacker run code as the SYSTEM user, which has the highest privileges on the machine.

What is RCE?

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

More by Oliver Lyak

View all

6 more disclosed reports, best first.

More from Zero Day Initiative

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.