Skip to content
Memory corruption Advisory Advanced CVE-2024-20729

Adobe Acrobat Reader Annot3D object zoom event use-after-free vulnerability

A use-after-free vulnerability exists in Adobe Acrobat Reader's handling of Annot3D objects, triggered by JavaScript in a malicious PDF. An attacker could exploit this to cause memory corruption and potentially achieve arbitrary code execution.

KPC Follow

Originally disclosed on Cisco Talos

High 8.8 View original

A use-after-free vulnerability exists in the Annot3D functionality of 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 execution.

KPC, 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 Annot3D object is freed during a zoom event triggered by JavaScript, but the code later uses the freed object without checking if it is still valid.

Impact

This could lead to memory corruption and potentially arbitrary code execution, though the text notes it may depend on memory layout.

What the attacker needed

Victim opens a malicious PDF; Adobe Acrobat Reader 2023.006.20380

The fix

The vendor released a patch; the underlying fix likely involves validating the Annot3D object before use or preventing its premature freeing.

How it was found

  1. Create a PDF with a 3D image and a text field.
  2. Embed JavaScript that sets a callback on a variable's toString property.
  3. Call setFocus on the text field to trigger the callback.
  4. The callback changes the page number, which triggers a zoom event.
  5. The zoom event frees the Annot3D object.
  6. The freed object is later used, causing a crash.

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 and then trying to open it. Here, a malicious PDF with JavaScript can trick Adobe Reader into freeing an object and then using it again, which can crash the program or let an attacker run their own code. The attacker needs the victim to open the 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.

More by KPC

View all

102 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.