Remote code execution in 32-bit Adobe Reader via Escript.api use-after-free
A use-after-free in Adobe Acrobat Reader’s Escript.api module enables remote code execution on 32-bit versions.
Security & privacy Exodus Intelligence 1 Jun 2026 Disclosure Prototype evidence
Published as “Adobe Acrobat Reader Escript.api Use-After-Free Remote Code Execution”
Why it matters
The work shows that Adobe Reader’s JavaScript engine can be fully compromised, underscoring the need for stricter validation of property descriptor overrides.
Summary
The write-up details a use-after-free bug in the Escript.api module caused by a mismatch between reference counting and the event scope stack when __defineGetter__ is abused. By crafting a PDF that recursively triggers a getter on Collab.toString, the attacker overflows the C++ stack, leaves a dangling pointer in the event scope stack, and then frees the object to achieve arbitrary read/write and full RCE on 32-bit Adobe Reader. The authors provide a working PoC and a full exploitation chain that bypasses DEP, ASLR, and CFG, and note that a patch later blocks the offending JavaScript APIs.
What they found 2
- The bug creates a dangling pointer in the event scope stack that can be exploited as a use-after-free.
“This leads to a dangling pointer in the event scope stack, which can be exploited as a use-after-free.”
- The exploit bypasses DEP, ASLR, and CFG on 32-bit Adobe Reader.
“The exploitation strategy used to achieve Remote Code Execution, bypassing Data Execution Prevention (DEP), Address Space Layout Randomization (ASLR), and Control Flow Guard (CFG), consists of the following phases:”
Caveats 4
- On Adobe Reader 64-bit we need a way to bypass PartitionAlloc to use the JavaScript to gain arbitrary read/write.
- All function names, data structure names, and field purposes presented in this analysis are inferred through reverse engineering.
- The analysis is limited to the 32-bit version; 64-bit exploitation requires additional bypasses.
- Function and structure names are best-effort interpretations and may not match Adobe's internal naming.
What’s new here 4
- Identifies a new use-after-free caused by divergent bookkeeping in Escript.api.
- Demonstrates a full remote code execution chain on 32-bit Adobe Reader.
- Shows how to bypass DEP, ASLR, and CFG using heap spray and object reclamation.
- Describes the patch that blocks __defineGetter__/__defineSetter__ on built-ins.