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

Adobe Acrobat Reader DC text field value remote code execution vulnerability redux

A JavaScript regular expression embedded in a PDF causes a heap buffer overflow due to an off-by-one error in counting array elements, leading to heap corruption. With careful memory manipulation, this could result in arbitrary code execution when the victim opens the malicious PDF.

Aleksandar Nikolic Follow

Originally disclosed on Cisco Talos

High 8.8 View original

A specific JavaScript code embedded in a PDF file can lead to a heap corruption when opening a PDF document in Adobe Acrobat Reader DC, version 2019.012.20035. With careful memory manipulation, this 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

The code that counts array elements fails to include the tail element, so the allocated buffer is one element too small, leading to a heap overflow when the array is written.

Impact

Heap corruption could possibly lead to arbitrary code execution, but the report only demonstrates a crash under verifier.

What the attacker needed

Victim opens a malicious PDF; Adobe Acrobat Reader DC 2019.012.20035

How it was found

  1. Create a PDF with embedded JavaScript that constructs a large regular expression and assigns it to a form field value.
  2. Open the PDF in Adobe Acrobat Reader DC 2019.012.20035.
  3. The JavaScript executes, triggering the heap corruption and 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.

Adobe Acrobat Reader can run JavaScript inside PDF files. A mistake in how it counts items in a list means it allocates slightly too little memory, so writing the list overflows into neighbouring memory. An attacker can use this to crash the program or, with more work, 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.