NitroPDF CharProcs Remote Code Execution Vulnerability
A use-after-free vulnerability exists in NitroPDF's parsing of CharProcs content streams, where a specially crafted PDF can cause a type confusion and potentially code execution. An attacker can craft a malicious PDF to trigger this vulnerability.
Originally disclosed on Cisco Talos
An exploitable Use After Free vulnerability exists in the CharProcs parsing functionality of NitroPDF. A specially crafted PDF can cause a type confusion, resulting in a Use After Free.
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 parser does not properly validate the type of content stream used for CharProcs, leading to a type confusion where a Text object stream is treated as a CharProcs stream, causing a buffer to be freed and then reused.
Impact
A specially crafted PDF could cause a use-after-free, potentially resulting in code execution, though the CVSS vector indicates high attack complexity and user interaction is required.
What the attacker needed
Victim opens a malicious 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 use-after-free is a memory bug where a program keeps using a piece of memory after it has been freed, which can let an attacker control what happens next. Here, a PDF file with a specially crafted font definition tricks the program into freeing a font object and then reusing that memory incorrectly, which could allow an attacker to run their own code.
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.