Adobe Acrobat Reader DC overlapping annotations type confusion vulnerability
A type confusion vulnerability in Adobe Acrobat Reader DC occurs when overlapping annotations are manipulated via JavaScript, causing the engine to dereference an object of the wrong type. An attacker could exploit this to achieve arbitrary code execution if a victim opens a malicious PDF.
Originally disclosed on Cisco Talos
A type confusion vulnerability exists in the way Adobe Acrobat Reader DC 2022.001.20085 deals with overlapping annotations. 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, the JavaScript engine's garbage collection code dereferences an object without verifying its type, expecting a structure of at least 0x974 bytes, but receives a smaller object from the Annotations.api extension.
Impact
This could lead to arbitrary code execution, though the report only demonstrates an out-of-bounds read that crashes the application.
What the attacker needed
Victim opens a malicious PDF; Adobe Acrobat Reader DC 2022.001.20085
How it was found
- Create a PDF with JavaScript that adds two annotations on page 1.
- Assign both annotations to the annotFilter property of the Document object.
- Add a third annotation with coordinates overlapping the first one and the same type.
- Open the PDF in Adobe Acrobat Reader to trigger the 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.
This bug is a type confusion, which means the program treats one kind of data as if it were a different kind. In this case, when a PDF contains JavaScript that creates and overlaps certain annotations, the JavaScript engine mistakenly reads memory as if it were a much larger object, leading to a crash and potentially letting an attacker run their own code. The victim only needs to open a malicious PDF file.
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.