Skip to content
Memory corruption Advisory Advanced CVE-2023-36887

Microsoft Edge MSDCPDF Javascript addIcon type confusion vulnerability

A type confusion vulnerability in Microsoft Edge's PDF JavaScript engine allows a crafted PDF to cause memory corruption when calling addIcon with an object of the wrong type. An attacker could potentially achieve code execution or other side effects by convincing a victim to open a malicious PDF.

Aleksandar Nikolic Follow

Originally disclosed on Cisco Talos

High 8.1 View original

A memory corruption vulnerability exists in the Javascript implementation of the Acrobat-based PDF engine in Microsoft Edge 112.0.1722.58 and 114.0.1776.0 Canary. A specially crafted PDF document can trigger type confusion vulnerability when manipulating icons, which could lead to writes to arbitrary memory and…

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 addIcon function fails to properly validate the type of object passed as an argument, leading to type confusion and invalid pointer dereference.

Impact

This could lead to writes to arbitrary memory and possibly code execution or other side effects.

What the attacker needed

Victim opens a malicious PDF

The fix

The vendor released an update to fix the vulnerability.

How it was found

  1. Create a PDF document with JavaScript that calls addIcon with a field object.
  2. Open the PDF in a vulnerable version of Microsoft Edge.
  3. The browser crashes due to type confusion.

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 report describes a bug in how Microsoft Edge handles PDF files that contain JavaScript. When a PDF tries to add an icon using a special function, the browser can get confused about the type of object it receives, leading to memory corruption. An attacker could use this to run malicious code on your computer if you open a specially crafted PDF.

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.