Adobe Acrobat Reader DC annotation gestures integer overflow vulnerability
An integer overflow in Adobe Acrobat Reader's handling of annotation gestures via JavaScript allows a crafted PDF to cause memory corruption. An attacker could exploit this to achieve arbitrary code execution when a victim opens the malicious file.
Originally disclosed on Cisco Talos
An integer overflow vulnerability exists in the way Adobe Acrobat Reader DC 2021.007.20099 supports annotation interactions through JavaScript. A specially-crafted PDF document can trigger this vulnerability, which can lead to arbitrary code execution.
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 integer overflow when adding 1 to a signed value from atoi(), causing a length check to pass and leading to an out-of-bounds memory access.
Impact
This could lead to further memory corruption and ultimately arbitrary code execution.
What the attacker needed
Victim opens a malicious PDF; Adobe Acrobat Reader DC 2021.007.20099
How it was found
- Create a PDF with embedded JavaScript that calls addAnnot with a gestures parameter set to an object with a negative index.
- Open the PDF in Adobe Acrobat Reader DC.
- The JavaScript executes and triggers the integer overflow, leading to a crash or memory 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.
Adobe Acrobat Reader lets PDFs contain JavaScript code that can add annotations (like drawings) to a page. A bug in how it checks the size of a list of coordinates means a negative number can slip through and cause the program to read or write memory it shouldn't. This can crash the program or, with more work, let an attacker run their own code.
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.