Skip to content
Memory corruption Advisory Advanced CVE-2021-28562

Adobe Acrobat Reader DC JavaScript search query code execution vulnerability

A use-after-free vulnerability exists in Adobe Acrobat Reader DC when executing search queries through JavaScript. A specially crafted PDF can trigger this vulnerability, potentially leading to arbitrary code execution.

Aleksandar Nikolic Follow

Originally disclosed on Cisco Talos

High 8.0 View original

A use-after-free vulnerability exists in the way Adobe Acrobat Reader DC 2020.013.20074 executes search queries through JavaScript. A specially crafted PDF document can trigger this vulnerability, which 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 concurrency issue in the search.query JavaScript API where overlapping calls lead to an object being freed prematurely and then reused.

Impact

This could lead to further memory corruption and ultimately arbitrary code execution.

What the attacker needed

Victim opens a malicious PDF

How it was found

  1. Open a search dialog with a search query.
  2. Set a Format event handler on a form field to call a function that performs another search query.
  3. Switch to another page, which triggers the Format event.
  4. The last search query call is initiated before the event handler executes, causing overlapping search.query calls.
  5. This overlap leads to premature freeing of an object, which is later reused, causing an access violation.

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 type of memory bug where a program frees an object but then keeps using it. In this case, Adobe Reader's JavaScript search feature can be tricked into freeing an object while it is still needed, and an attacker could exploit that to run their own code. The victim only needs to open 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

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.