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

Adobe Acrobat Reader DC Annotation Destroy Remote Code Execution

A use-after-free vulnerability in Adobe Acrobat Reader DC allows an attacker to corrupt memory by destroying an annotation twice via JavaScript event handlers. With careful memory manipulation, this could lead to arbitrary code execution when the victim opens a malicious PDF or visits a malicious web page.

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 2020.006.20034. 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 the annotation object is not properly invalidated after being destroyed, so a second destroy call operates on freed memory.

Impact

This could lead to arbitrary code execution if the attacker carefully manipulates memory between the free and reuse.

What the attacker needed

Victim opens a malicious PDF; or victim visits a malicious web page

How it was found

  1. Attach an OnBlur action to a button that destroys an annotation.
  2. Set focus to the button, then cause it to lose focus to trigger the handler.
  3. Call destroy on the same annotation again, causing a use-after-free.

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 is a bug where a program frees memory but then keeps using it, like deleting a file but still opening it. Here, a PDF's JavaScript can destroy an annotation, then trigger its destruction again, causing the program to use freed memory. An attacker could exploit 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 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.