Skip to content
Memory corruption Advisory Advanced CVE-2019-7831

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.

Aleksandar Nikolic Follow

Originally disclosed on Cisco Talos

High 8.0 View original

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.

Aleksandar Nikolic, 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 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

  1. Open a crafted PDF containing the JavaScript in Adobe Acrobat Reader DC 2019.010.20098.
  2. The first call passes app.thermometer to the undocumented function, which allocates an object.
  3. The second call frees that object as a side effect.
  4. 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.

More by Aleksandar Nikolic

View all

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