Skip to content
Memory corruption Write-up Advanced

Analysis of Adobe Acrobat Reader Javascript Doc.print() Use-After-Free Vulnerability (CVE-2022-34233)

A use-after-free vulnerability in Adobe Acrobat Reader's handling of the Doc.print() JavaScript API could be triggered by a malicious PDF, potentially leading to disclosure of sensitive memory and bypass of ASLR. Exploitation requires the victim to open a malicious file.

Zscaler Threatlabz Follow

Published on zscaler.com

Subscribe

ThreatLabz (@Threatlabz), on zscaler.com

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 write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the Doc.print() JavaScript API mishandles specially crafted parameters, leading to a memory region being freed and then accessed again.

Impact

An attacker could potentially disclose sensitive memory and bypass mitigations such as ASLR, but exploitation requires the victim to open a malicious file.

What the attacker needed

Victim opens a malicious PDF file

How it was found

  1. Enable Page Heap in Acrobat.exe.
  2. In Windbg, open Acrobat.exe with the PoC PDF as argument, enable debugging of child processes, and issue the 'g' command multiple times.
  3. Adobe Acrobat will crash after a while.

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 write-up has not been written yet. The Original tab links to the source.

A use-after-free happens when a program frees a chunk of memory but then keeps using it, which can let an attacker read or control data. Here, opening a specially crafted PDF file makes Adobe Reader misuse memory through a printing function, which could leak sensitive information and help bypass security protections.

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

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.