Adobe Acrobat Reader DC app.thermometer Remote Code Execution Vulnerability
A use-after-free in Adobe Acrobat Reader DC can be triggered by embedded JavaScript that calls an undocumented function with the app.thermometer object, then frees it, then accesses it again. With careful heap manipulation an attacker could turn the memory corruption into arbitrary code execution when a victim opens a malicious PDF or web page.
Originally disclosed on Cisco Talos
A specific JavaScript code embedded in a PDF file can lead to a heap corruption when opening a PDF document in Adobe Acrobat Reader DC 2019.10.20098. 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 undocumented FormWorkflow.setFormFolderForMultipleForms call leaves app.thermometer pointing at an object that a later operation frees, and the subsequent access reuses the dangling pointer.
Impact
The crash is a read access violation, but the report says that with precise control over allocations between the second and third calls this could lead to further memory corruption, information leaks and ultimately arbitrary code execution.
What the attacker needed
Victim opens a malicious PDF; victim visits a malicious web page; JavaScript enabled in Acrobat Reader
How it was found
- Open a crafted PDF containing the JavaScript in Adobe Acrobat Reader DC 2019.010.20098.
- The first call passes app.thermometer to the undocumented function, which allocates an object.
- The second call frees that object as a side effect.
- The third call accesses app.thermometer, reusing the freed memory and causing a crash or corruption.
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 PDF can contain JavaScript, and Acrobat runs it. The bug is a use-after-free: the program throws away an object but keeps a pointer to it, then later reads or writes through that stale pointer. If an attacker can control what memory lands in that freed slot, they may be able to run their own code on the victim's machine.
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.