Skip to content
Memory corruption Advisory Advanced CVE-2022-34221

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.

Aleksandar Nikolic Follow

Originally disclosed on Cisco Talos

High 8.8 View original

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.

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 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

  1. Create a PDF with JavaScript that adds two annotations on page 1.
  2. Assign both annotations to the annotFilter property of the Document object.
  3. Add a third annotation with coordinates overlapping the first one and the same type.
  4. 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.

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.