Skip to content
Memory corruption Advisory Advanced CVE-2026-122171

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

High 8.8 View original

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

The original report as published on the Microsoft Security Response Center, by Minjea Park. 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 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

  1. An attacker creates a specially crafted document.
  2. The attacker sends the document to a user.
  3. The attacker convinces the user to open the document.
  4. 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.

More by Minjea Park

View all

40 more disclosed reports, best first.

More from Microsoft

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.