CVE-2026-5940 Foxit PDF Editor/Reader Annotation Use-After-Free Remote Code Execution Vulnerability
Attackers can trigger a use-after-free via script to cause crashes or execute code in Foxit PDF Editor and Reader.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2026-5940?
CVE-2026-5940 is a high-severity use after free vulnerability in Foxit Pdf Editor, published on 27 Apr 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official description
Calling a function that triggers a UI refresh after removing comments via a script may access an invalidated object, leading to program crashes.
Weakness: CWE-416
Which versions are affected by CVE-2026-5940?
It affects 2 products.
Products include Foxit Pdf Editor, Foxit Pdf Reader.
How do I fix CVE-2026-5940?
No fix has been published for CVE-2026-5940 yet. Limit exposure of the affected software until one is available.
Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.
Is CVE-2026-5940 being exploited?
There is no known exploitation of CVE-2026-5940 in the wild and no public exploit code.
Other vulnerabilities in Foxit Pdf Editor
Sources
Also known as GHSA-gmwv-jpmc-ppqc.