Skip to content
Memory corruption Advisory Advanced CVE-2020-9609

Adobe Acrobat Reader DC Javascript submitForm Remote Code Execution Vulnerability

A JavaScript string containing Unicode characters passed to the submitForm function in Adobe Acrobat Reader DC is not properly null-terminated when converted, causing an out-of-bounds read. An attacker could exploit this to disclose sensitive memory or corrupt heap memory, potentially leading to arbitrary code execution.

Aleksandar Nikolic Follow

Originally disclosed on Cisco Talos

High 8.8 View original

A specific JavaScript code embedded in a PDF file can lead to out of bounds memory access when opening a PDF document in Adobe Acrobat Reader DC 2020.006.20034. With careful memory manipulation, this can lead to sensitive information disclose as well as memory corruption which 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 Unicode string is not properly null-terminated when converted between different types, so a loop that counts bytes until two null bytes continues reading out of bounds.

Impact

This could lead to sensitive information disclosure and memory corruption, potentially enabling arbitrary code execution, though there are restrictions on when submitForm executes (by default only in browser context).

What the attacker needed

Victim opens a malicious PDF; or victim visits a malicious web page

How it was found

  1. Create a PDF with embedded JavaScript that builds a string containing Unicode characters.
  2. Pass that string as the URL argument to the submitForm function.
  3. Open the PDF in Adobe Acrobat Reader DC to trigger the out-of-bounds read.

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.

Adobe Acrobat Reader can run JavaScript inside PDF files. When a particular function is given a string with special characters, the program makes a mistake and reads past the end of the string, which can crash the program or let an attacker run their own code. The victim just needs to open a malicious PDF or visit a malicious 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.