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.
Originally disclosed on Cisco Talos
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.
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
- Create a template from the current document.
- Attach a Format event handler to a text field that deletes pages.
- Spawn two pages from the template.
- Reset the form, which triggers the Format event and executes the handler.
- 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.