Skip to content
Memory corruption Advisory Advanced CVE-2020-6092

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.

Aleksandar Nikolic Follow

Originally disclosed on Cisco Talos

High 8.8 View original

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.

Aleksandar Nikolic, on Cisco Talos

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

  1. Create a PDF file containing a /Pattern object with a /BBox property that has an abnormally large first coordinate.
  2. Open the PDF file in Nitro Pro 13.9.1.155.
  3. 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.

More by Aleksandar Nikolic

View all

147 more disclosed reports, best first.

More from Cisco Talos

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.