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

Nitro Pro PDF JPEG2000 Stripe Sub-sample Decoding Out-of-bounds Write Code Execution Vulnerability

A specially crafted JPEG2000 image embedded in a PDF can cause Nitro Pro to miscalculate a stride when initialising tile sub-samples, leading to an out-of-bounds write and memory corruption. An attacker could achieve code execution by convincing a victim to open the malicious PDF.

Discovered a member Follow

Originally disclosed on Cisco Talos

High 8.8 View original

An exploitable code execution vulnerability exists in the JPEG2000 Stripe Decoding functionality of Nitro Software, Inc.’s Nitro Pro 13.13.2.242 when decoding sub-samples. While initializing tiles with sub-sample data, the application can miscalculate a pointer for the stripes in the tile which allow for the decoder…

Discovered a member, 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 stride calculation for sub-sample data does not account for the stripe width being larger than the tile, so the stride exceeds the tile bounds and writes go out of bounds.

Impact

A specially crafted image embedded in a PDF and loaded by a victim could trigger memory corruption and result in code execution.

What the attacker needed

Victim opens a malicious PDF; PDF contains a crafted JPEG2000 image

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.

When Nitro Pro opens a PDF containing a JPEG2000 image, it uses a library to decode the image into memory. A mistake in calculating how far apart rows of image data are stored lets the program write past the end of its buffer, corrupting memory. An attacker can use this to run their own code on the victim's computer.

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 Discovered a member

View all

1 more disclosed report, 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.