Skip to content
Memory corruption Advisory Advanced CVE-2018-12815

Adobe Acrobat Reader DC JSON Stringify Remote Code Execution Vulnerability

A use-after-free in Adobe Acrobat Reader DC can be triggered by JavaScript embedded in a PDF, leading to a crash and potentially arbitrary code execution. The attacker must convince the victim to open a malicious file or visit a malicious web page.

Aleksandar Nikolic Follow

Originally disclosed on Cisco Talos

Medium 6.8 View original

A specific JavaScript code embedded in a PDF file can lead to a use-after-free condition when opening a PDF document in Adobe Acrobat Reader DC 2018.011.20038. 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

Likely a cache misuse in the JavaScript engine causes an indirect reference to a freed object to be returned and then dereferenced.

Impact

With careful memory manipulation, this could lead to arbitrary code execution, but the triggering method call is privileged and only callable from trusted functions or locations.

What the attacker needed

Victim opens a malicious PDF; or victim visits a malicious web page; Adobe Acrobat Reader DC 2018.011.20038

How it was found

  1. Create a PDF containing the JavaScript code that calls the listed methods and JSON.stringify on the Collab.drivers object.
  2. Open the PDF in Adobe Acrobat Reader DC 2018.011.20038.
  3. The JavaScript executes and triggers a use-after-free, causing a crash at the shown address.

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 use-after-free happens when a program frees some memory but then keeps using it, like deleting a file and then trying to open it. Here, a PDF with JavaScript makes the reader free an object and then use it again, which can crash the program or let an attacker run their own code. The victim just has to open the PDF or visit a web page that loads it.

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.