Skip to content
Memory corruption Advisory Advanced CVE-2026-91799

Foxit Reader Array resetForm Use-After-Free Vulnerability

A use-after-free vulnerability exists in Foxit Reader when handling an Array object passed to resetForm, where a toString callback can free page objects that are later used without validation. An attacker could exploit this to cause memory corruption and potentially achieve arbitrary code execution.

KPC Follow

Originally disclosed on Cisco Talos

High 7.8 View original

A use-after-free vulnerability exists in the way Foxit Reader handles an Array object. A specially crafted JavaScript code inside a malicious PDF document can trigger this vulnerability, which can lead to memory corruption and result in arbitrary code execution.

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

Impact

This could lead to memory corruption and potentially arbitrary code execution, though the report notes it may depend on memory layout.

What the attacker needed

Victim opens a malicious PDF; JavaScript enabled in Foxit Reader

The fix

The vendor released a patched version (v2026.2.1) to address the vulnerability.

How it was found

  1. Create a PDF with JavaScript that defines an array containing objects with a toString property pointing to a function that deletes pages.
  2. Call resetForm on the active document with that array, causing the toString function to be invoked and free page objects.
  3. The freed object is later dereferenced, leading to a crash or potential exploitation.

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.

A use-after-free bug happens when a program frees memory but then keeps using it, like deleting a file and still trying to open it. Here, a malicious PDF contains JavaScript that tricks the reader into freeing some data and then reading it again, which can crash the program or 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.

More by KPC

View all

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