Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconCraft malicious PDF with JS
-
DeliverySocial engineering delivery
-
ExploitUser opens PDF
-
InstallJavaScript deletes comments
-
C2UI refresh triggers use-after-free
-
ExecuteMemory corruption enables code execution
-
ImpactArbitrary code runs as user
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Memory lifecycle management
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires user to open a specially crafted PDF file containing malicious JavaScript code in a vulnerable version of Foxit PDF Reader or Editor. JavaScript execution must be enabled in the application (enabled by default in standard configurations). The PDF must contain both removable comment objects and scripting that performs the specific sequence of comment deletion followed by UI refresh function calls. Exploitation delivers local code execution at the privilege level of the user who opened the PDF. Does not work against users who have disabled JavaScript in PDF reader preferences or organizations using PDF sanitization gateways that strip JavaScript before delivery. |
| Impact | Real-world risk is moderate despite the 7.8 CVSS score. The CVSS vector (AV:L/AC:L/PR:N/UI:R) indicates local attack vector with low complexity but mandatory user interaction - attackers must deliver a malicious PDF and convince users to open it, typically via phishing or watering hole attacks. The UI:R requirement prevents automated mass exploitation and significantly reduces SSVC automatable score. No EPSS data provided, but user interaction dependency typically correlates with lower exploitation probability compared to network services. Not present in CISA KEV, indicating no confirmed active exploitation campaigns. The high impact scores (C:H/I:H/A:H) reflect successful exploitation grants full code execution privileges, potentially allowing malware installation or data theft. Primary risk exists for organizations handling untrusted PDFs, especially in email-heavy environments. The vulnerability requires specific JavaScript actions in PDFs, which security-conscious organizations may already block via PDF reader hardening policies that disable JavaScript execution. |
| Exploit ScenarioDerived | An attacker crafts a malicious PDF document containing embedded JavaScript that programmatically deletes comment annotations and immediately triggers a UI refresh operation, causing the application to dereference freed memory. The attacker delivers this PDF via phishing email with a convincing pretext (invoice, resume, contract). When the victim opens the PDF in vulnerable Foxit PDF Reader, the JavaScript executes automatically or upon user interaction with document elements, triggering the use-after-free condition and allowing the attacker to execute arbitrary code in the context of the user's session, potentially installing malware or exfiltrating documents. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Apr 27, 2026
Use-after-free in Foxit PDF Reader and Foxit PDF Editor allows arbitrary code execution when specially crafted PDF documents trigger UI refresh operations after comment deletion via scripting. Local attackers can deliver malicious PDFs and achieve code execution with high integrity and confidentiality impact once a user opens the file. CVSS 7.8 indicates high severity but requires user interaction, limiting automated exploitation. No public exploit code or active exploitation confirmed at time of analysis.
Earlier versions of this analysis (1)
Use-after-free vulnerability in Foxit PDF Editor and Foxit PDF Reader allows local attackers to execute arbitrary code or cause denial of service when scripted comment deletion is followed by UI refresh operations. The flaw requires user interaction with a malicious PDF file but does not require authentication, enabling potential code execution with high impact to confidentiality, integrity, and availability. No active exploitation confirmed at time of analysis.
RemediationAI
Apply vendor-released patches available through Foxit's security bulletin portal at https://www.foxit.com/support/security-bulletins.html. Specific patched versions not enumerated in available data - refer to the bulletin for exact fixed versions for PDF Reader and PDF Editor respectively. As an interim compensating control, disable JavaScript execution in Foxit PDF products via Edit > Preferences > JavaScript > Enable JavaScript Actions (uncheck), which prevents the scripting trigger required for exploitation but breaks PDF forms and interactive features that rely on JavaScript. For enterprise deployments, implement application whitelisting to block execution of processes spawned from PDF reader processes, limiting post-exploitation impact. Email gateway scanning should flag PDFs containing JavaScript and subject them to enhanced scrutiny or quarantine pending user approval.
Affected VersionsENISA
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
This is a use-after-free vulnerability (CWE-416) in Foxit's PDF rendering engine, affecting both the commercial PDF Editor and free PDF Reader products. The flaw occurs in the JavaScript scripting engine's interaction with the UI rendering subsystem. When embedded JavaScript code programmatically removes comments from a PDF document and subsequently triggers a UI refresh operation, the application accesses memory that has already been deallocated. Use-after-free conditions are particularly dangerous in document readers because they allow attackers to control freed memory contents through carefully structured PDF objects, enabling arbitrary code execution. The vulnerability exists in the object lifecycle management between the scripting API and the UI rendering pipeline, where the comment deletion invalidates pointers that are later dereferenced during screen updates.
Know when Foxit Pdf Editor gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
DescriptionCVE.org
Calling a function that triggers a UI refresh after removing comments via a script may access an invalidated object, leading to program crashes.
Zero Day Initiative Advisories
Executive ViewAI
Foxit PDF Reader and Foxit PDF Editor contain a use-after-free vulnerability (CVE-2026-5940) that allows attackers to execute arbitrary code when users open specially crafted PDF documents. This vulnerability directly impacts any organization using Foxit products to handle external PDF files, with no available vendor patch, requiring immediate compensating controls to prevent potential data exfiltration and system compromise.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Disable JavaScript/scripting functionality in Foxit applications via preferences or group policy to prevent comment deletion triggers; (2) Restrict PDF file access to isolated sandboxed environments or virtual machines for processing external documents; (3) Implement network-level controls to block PDF delivery from untrusted external sources; (4) Require users to obtain PDFs only from verified internal sources; (5) Monitor Foxit security advisories for patch availability and deploy immediately upon release.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Use-after-free vulnerabilities occur when a program continues to access memory through a pointer after that memory has been deallocated.
Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
More in Foxit Pdf Editor
View allContent spoofing in Foxit PDF Editor and Foxit PDF Reader allows remote attackers to alter visible content in incrementa
Local privilege escalation in Foxit PDF Editor for macOS allows an attacker with a low-privilege foothold to execute arb
A local privilege escalation vulnerability in the auto-update daemon shipped with Foxit PDF Editor and Foxit PDF Reader
Man-in-the-middle attackers occupying the network path of Foxit PDF Editor and Foxit PDF Reader software-update traffic
Path traversal in the attachment-handling logic of Foxit PDF Editor and Foxit PDF Reader lets a crafted PDF write an emb
An out-of-bounds write (CWE-787) in the PDF rendering engine of Foxit PDF Editor and Foxit PDF Reader can be triggered w
Out-of-bounds write in the U3D/GIF texture decoding path of Foxit PDF Editor and Foxit PDF Reader allows a crafted PDF t
Insufficient validation of embedded-resource file paths in Foxit PDF Editor and Foxit PDF Reader (CVE-2026-91801) lets a
Foxit PDF Editor and Reader can crash due to a use-after-free (CWE-416) when a user opens a specially crafted PDF that i
Use-after-free in Foxit PDF Editor and Foxit PDF Reader (CWE-416) lets a specially crafted PDF trigger memory corruption
Heap-based out-of-bounds write in Foxit PDF Editor and Foxit PDF Reader occurs when the products decode JPEG2000 image d
A use-after-free in Foxit PDF Editor and Foxit PDF Reader can be triggered by opening a crafted PDF whose image objects
EUVD-2026-25826
NVD
CVE.org
EPSS
Vulnrichment
VulDB
GitHub PoC
Exploit-DB