Nitro Pro PDF Pattern Object Code Execution Vulnerability
Nitro Pro [redacted] has an integer overflow when parsing the /BBox property of a /Pattern object in a PDF file. A specially crafted PDF can trigger a heap buffer overflow, potentially leading to arbitrary code execution when the victim opens the file.
Originally disclosed on Cisco Talos
An exploitable code execution vulnerability exists in the way Nitro Pro 13.9.1.155 parses Pattern objects. A specially crafted PDF file can trigger an integer overflow that can lead to arbitrary code execution.
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 integer overflow occurs because a floating-point value from the /BBox is truncated to a signed 32-bit integer, resulting in a negative value that causes a loop counter to wrap around and write out of bounds.
Impact
A specially crafted PDF file could cause a heap buffer overflow, potentially leading to arbitrary code execution.
What the attacker needed
Victim opens a malicious PDF file
How it was found
- Create a PDF file containing a /Pattern object with a /BBox property that has an abnormally large first coordinate.
- Open the PDF file in Nitro Pro 13.9.1.155.
- The application parses the /Pattern object and triggers the integer overflow, leading to a heap buffer overflow.
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 PDF file can contain a pattern object with a bounding box that has an extremely large coordinate. When Nitro Pro reads this coordinate, it converts it to a number that is too big to fit, causing an integer overflow. This leads to a loop that writes past the end of a memory buffer, which can crash the program or 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.