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

Adobe Acrobat Reader DC form field format use after free

A use-after-free vulnerability exists in Adobe Acrobat Reader DC when processing Format event actions attached to form fields. An attacker could exploit this by crafting a malicious PDF that triggers the flaw, potentially leading to arbitrary code execution.

Aleksandar Nikolic Follow

Originally disclosed on Cisco Talos

High 8.8 View original

A specific JavaScript code embedded in a PDF file can trigger a use-after-free vulnerability when opening a PDF document in Adobe Acrobat Reader DC 2020.012.20043. 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 Format event handler deletes pages, freeing the text field object, but a stale reference to that object is kept and later reused.

Impact

With careful memory manipulation, this could lead to arbitrary code execution.

What the attacker needed

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

How it was found

  1. Create a template from the current document.
  2. Attach a Format event handler to a text field that deletes pages.
  3. Spawn two pages from the template.
  4. Reset the form, which triggers the Format event and executes the handler.
  5. The handler deletes pages, freeing the text field object, and then reuses the stale reference.

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 memory but then keeps using it, like deleting a file but still trying to open it. Here, a PDF with JavaScript can cause the reader to free a form field object and then use it again, which can crash the program or let an attacker 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.