Adobe Acrobat Reader DC Javascript gotoNamedDest information leak vulnerability
A JavaScript function in Adobe Acrobat Reader DC, when called with a non-existent bookmark name, throws an unhandled exception that corrupts the stack and leads to a memcpy with an invalid source pointer and huge size, causing a crash. The report suggests that if the pointer could be partially controlled, this could leak heap memory to bypass ASLR or other mitigations.
Originally disclosed on Cisco Talos
A specific JavaScript code embedded in a PDF file can lead to information leak when opening a PDF document in Adobe Acrobat Reader DC 2019.021.20048. With careful memory manipulation, this can lead to sensitive information disclose which could be abused when exploiting another vulnerability to bypass mitigations.
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 an unhandled exception in the gotoNamedDest function leads to stack corruption and a subsequent memcpy with an invalid source pointer and an incorrect size.
Impact
The vulnerability causes a crash, and the report suggests that with careful memory manipulation it could lead to sensitive information disclosure that could aid in bypassing ASLR or other mitigations.
What the attacker needed
Victim opens a malicious PDF; Adobe Acrobat Reader DC 2019.021.20048
The fix
The vendor patched the vulnerability, but the report does not describe the fix.
How it was found
- Create a PDF with embedded JavaScript that calls gotoNamedDest with a non-existent bookmark name.
- Open the PDF in Adobe Acrobat Reader DC 2019.021.20048.
- The JavaScript executes and triggers an unhandled exception.
- The exception handling corrupts the stack, leading to a memcpy with invalid arguments and a 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.
Adobe Acrobat Reader can run JavaScript inside PDF files. A particular function that jumps to a bookmark fails badly when the bookmark does not exist, causing the program to copy data from a bad memory address and crash. The report says that with more control over memory, an attacker might be able to leak sensitive data from the program's memory.
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.