Foxit Foxit Reader Javascript checkbox CBF_Widget code execution vulnerability
A use-after-free flaw in Foxit Reader's handling of a JavaScript array object associated with a form field allows a malicious PDF to trigger memory corruption. An attacker could exploit this to achieve arbitrary code execution.
A code execution vulnerability exists in the Javascript checkbox CBFWidget functionality of Foxit Reader (version(s): 2026.1.1.36485). A specially crafted malformed file can lead to remote 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
Impact
Depending on the memory layout, this could lead to arbitrary read and write operations and ultimately arbitrary code execution.
What the attacker needed
Victim opens a malicious PDF; JavaScript enabled in Foxit Reader
The fix
The vulnerability was fixed in Foxit PDF Reader/Editor v2026.1.2 and Foxit PDF Editor v14.0.5/13.2.5.
How it was found
- Create a PDF with a JavaScript that sets items on a list box field.
- Reset the form to trigger the Format action.
- Set a Format action that calls deletePages().
- Set items again on the list box to trigger the use-after-free.
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 happens when a program frees a piece of memory but then keeps using it, like deleting a file and then trying to open it. Here, a malicious PDF uses JavaScript to free an object and then access it again, which can let an attacker run their own code on the victim's computer.
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.