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.
Originally disclosed on Cisco Talos
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.
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
- Open a search dialog with a search query.
- Set a Format event handler on a form field to call a function that performs another search query.
- Switch to another page, which triggers the Format event.
- The last search query call is initiated before the event handler executes, causing overlapping search.query calls.
- 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.