Adobe Acrobat Reader FileAttachment PDAnnot destroy use-after-free vulnerability
A use-after-free vulnerability exists in Adobe Acrobat Reader when processing a FileAttachment PDAnnot object. A specially crafted JavaScript inside a malicious PDF can trigger reuse of a freed object, leading to memory corruption and potentially arbitrary code execution.
A use-after-free vulnerability exists in the FileAttachment PDAnnot object processing in Adobe Acrobat Reader 2023.006.20380. A specially crafted Javascript code inside a malicious PDF document can trigger reuse of a previously freed object, which can lead to memory corruption and could result in arbitrary code…
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 freed PDAnnot object is used without validation after being destroyed by JavaScript.
Impact
This could lead to memory corruption and potentially arbitrary code execution, though the text notes it may be possible depending on memory layout.
What the attacker needed
Victim opens a malicious PDF; JavaScript enabled in PDF reader
The fix
The vendor released a security bulletin with patches.
How it was found
- Create a PDF with a FileAttachment annotation and JavaScript code.
- The JavaScript adds a combobox field and focuses a text field, changing the view to page 2.
- This triggers a function that destroys the first annotation object (the FileAttachment PDAnnot).
- The freed object is later used, causing a crash or potential code execution.
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 bug happens when a program frees memory but then keeps using it, like deleting a file but still opening it. Here, a PDF with JavaScript can cause the reader to free an annotation object and then use it again, which can crash the program or let an attacker run their own code. The attacker must convince the victim to open a malicious PDF.
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.