Microsoft XPS Document Converter Remote Code Execution Vulnerability (CVE-2026-122171)
A heap-based buffer overflow exists in the Microsoft XPS Document Converter. An attacker could send a specially crafted document and convince a user to open and print it using Microsoft Print to PDF, potentially running code with the printing application's permissions.
Minjea Park Follow with Jmini
Originally disclosed on Microsoft
Description
Heap-based buffer overflow in Microsoft XPS Document Converter allows an unauthorized attacker to execute code over a network.
FAQ
How could an attacker exploit this vulnerability? An attacker could send a specially crafted document and convince a user to open it and print it using Microsoft Print to PDF. Successful exploitation could allow the attacker to run code with the permissions of the application printing the document. The attacker does not need an account on the affected system.
Microsoft XPS Document Converter
Microsoft XPS Document Converter
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 a heap-based buffer overflow in the XPS Document Converter when parsing a specially crafted document during printing.
Impact
Successful exploitation could allow the attacker to run code with the permissions of the application printing the document; the attacker does not need an account on the affected system.
What the attacker needed
Victim opens a crafted document; victim prints it with Microsoft Print to PDF; no account needed
How it was found
- An attacker creates a specially crafted document.
- The attacker sends the document to a user.
- The attacker convinces the user to open the document.
- The user prints the document using Microsoft Print to PDF.
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.
A buffer overflow is when a program writes more data into a fixed-size memory area than it can hold, corrupting nearby memory. Here, a malicious document processed by the XPS converter can trigger this, and if the user prints it, the attacker may be able to run their own code on the machine.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.