Skip to content
Memory corruption Advisory Advanced CVE-2018-4947

Adobe Acrobat Reader DC ANFancyAlertImpl Remote Code Execution Vulnerability

A JavaScript script embedded in a PDF can trigger a use of uninitialised memory in Adobe Acrobat Reader DC, leading to memory corruption. With careful manipulation, an attacker could potentially achieve sensitive memory disclosure or arbitrary code execution.

Aleksandar Nikolic Follow

Originally disclosed on Cisco Talos

Medium 6.8 View original

A specific Javascript script embedded in a PDF file can lead to a pointer to previously freed object to be reused when opening a PDF document in Adobe Acrobat Reader DC 2018.009.20044. With careful memory manipulation, this can potentially lead to sensitive memory disclosure or 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, a memory object allocated by ANFancyAlertImpl is passed to other functions without initialisation, so its contents depend on previous memory use and can be attacker-influenced.

Impact

This could potentially lead to sensitive memory disclosure or arbitrary code execution, though the method calls require higher privileges and must be executed in a trusted PDF file.

What the attacker needed

Victim opens a malicious PDF; PDF must be trusted for privileged calls

How it was found

  1. Create a PDF containing JavaScript that calls the privileged methods.
  2. Open the PDF in Adobe Acrobat Reader DC 2018.009.20044.
  3. Observe memory corruption in the memcpy call.

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.

When a program allocates memory, it should initialise it before use. Here, a function called from JavaScript inside a PDF left a memory object uninitialised, so it contained leftover data. That leftover data was then used as sizes and pointers in a memory copy, which can crash the program or let an attacker control what happens next.

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.