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

Adobe Acrobat Reader DC Net.Discovery.queryServices Remote Code Execution Vulnerability

A use-after-free vulnerability in Adobe Acrobat Reader DC's handling of the Net.Discovery.queryServices JavaScript method can be triggered by a malicious PDF, leading to a crash and potentially arbitrary code execution. An attacker could exploit this by tricking a victim into opening a crafted PDF or visiting a malicious web page.

Aleksandar Nikolic Follow

Originally disclosed on Cisco Talos

High 7.1 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 the Net.Discovery.queryServices method frees an object but later dereferences a stale pointer to it when processing an invalid service name.

Impact

With careful memory manipulation, this could potentially lead to sensitive memory disclosure or arbitrary code execution, but the exploit requires the PDF to be in a trusted location.

What the attacker needed

Victim opens malicious PDF; PDF in trusted locations list

How it was found

  1. Create a PDF document with embedded JavaScript that calls Net.Discovery.queryServices with an empty string as the first argument.
  2. Add the PDF file to the trusted locations list in Acrobat Reader's Security(Enhanced) preferences.
  3. Open the PDF in Adobe Acrobat Reader DC 2018.009.20044 to trigger the use-after-free and 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 is a type of bug where a program keeps using memory after it has been freed, which can let an attacker control what happens next. In this case, a malicious PDF with special JavaScript can cause the PDF reader to crash and possibly run the attacker's code. The victim just needs to open the file or visit a web page.

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.