Skip to content
Memory corruption Advisory Advanced CVE-2019-5067

Aspose.PDF for C++ parent generation remote code execution vulnerability

A malformed PDF with a negative generation number in a Parent reference causes Aspose.PDF to throw an exception, but during exception handling an uninitialized object is accessed, leading to memory corruption. An attacker could potentially achieve arbitrary code execution by controlling memory contents.

Aleksandar Nikolic Cisco Talos Follow

Originally disclosed on Cisco Talos

Critical 9.8 View original

An uninitialized memory access vulnerability exists in the way Aspose.PDF 19.2 for C++ handles invalid parent object pointers. A specially crafted PDF can cause a read and write from uninitialized memory, resulting in memory corruption and possibly arbitrary code execution.

Aleksandar Nikolic Cisco Talos, 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 exception handling path accesses a partially initialized object, leading to use of uninitialized memory.

Impact

An attacker could cause memory corruption and possibly arbitrary code execution by carefully controlling memory contents.

What the attacker needed

Victim opens a malicious PDF

The fix

The vendor patched the vulnerability.

How it was found

  1. Create a PDF with a Parent reference that has a negative generation number.
  2. Open the PDF in an application using Aspose.PDF.
  3. The library throws an exception but then accesses uninitialized memory, causing a crash.

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.

This report describes a bug in a PDF library. When the library tries to read a PDF with a broken internal reference, it crashes in a way that could let an attacker run their own code. The attacker just needs to trick someone into opening a malicious PDF file.

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 Cisco Talos

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.