Foxit Reader Signature Uninitialized Pointer Vulnerability
An uninitialized pointer in Foxit Reader's handling of a signature object can be triggered by JavaScript in a malicious PDF, leading to memory corruption and potentially arbitrary code execution. An attacker must trick a user into opening the file or visiting a malicious site with the browser plugin enabled.
A memory corruption vulnerability exists in Foxit Reader 2025.1.0.27937 due to the use of an uninitialized pointer. 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.
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 a field in the CPDF_Signature object is not initialised before being used as a 'this' pointer in a method call.
Impact
By carefully controlling allocations and deallocations, an exploit could gain control over the uninitialized memory, leading to further memory corruption and potentially arbitrary code execution.
What the attacker needed
Victim opens a malicious PDF; or victim visits a malicious site with plugin enabled
The fix
The vendor released a patch on 2025-08-13.
How it was found
- Open a malicious PDF containing JavaScript that calls signatureInfo() on a signature field.
- The script calls setLock(true) on the same field.
- The script calls JSON.stringify on the signature info object.
- The uninitialized pointer is dereferenced, causing a 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.
A PDF reader can run JavaScript inside documents. In this case, a programming mistake left a pointer (a memory address) uninitialised, so it pointed to leftover data. When the program later used that pointer, it crashed or could be made to run attacker-controlled 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.