The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-5940

CVE-2026-5940: Foxit PDF Editor Use-After-Free Flaw

CVE-2026-5940 is a use-after-free vulnerability in Foxit PDF Editor that occurs when UI refresh functions access invalidated objects after comment removal. This article covers technical details, affected versions, and mitigations.

Published: April 30, 2026

CVE-2026-5940 Overview

CVE-2026-5940 is a Use After Free vulnerability affecting Foxit PDF Editor and PDF Reader. The vulnerability occurs when calling a function that triggers a UI refresh after removing comments via a script, which may access an invalidated object. This memory safety issue can lead to program crashes, resulting in a denial of service condition for affected users.

Critical Impact

Successful exploitation of this vulnerability can cause application crashes when processing maliciously crafted PDF documents, resulting in denial of service and potential loss of unsaved work.

Affected Products

  • Foxit PDF Editor
  • Foxit PDF Reader

Discovery Timeline

  • April 27, 2026 - CVE-2026-5940 published to NVD
  • April 29, 2026 - Last updated in NVD database

Technical Details for CVE-2026-5940

Vulnerability Analysis

This vulnerability is classified as CWE-416 (Use After Free), a memory corruption vulnerability that occurs when an application continues to use a pointer after the memory it references has been freed. In the context of Foxit PDF Editor and Reader, the issue manifests during comment manipulation operations performed via JavaScript scripting within PDF documents.

When a script removes comments from a PDF document and subsequently calls a function that triggers a UI refresh, the application attempts to access an object that has already been deallocated from memory. This creates a race condition between the comment deletion operation and the UI refresh mechanism, leading to access of invalidated memory regions.

The attack vector requires local access and user interaction—specifically, a victim must open a maliciously crafted PDF document containing the triggering script code. The vulnerability does not impact data confidentiality or integrity but can cause complete application denial of service through program crashes.

Root Cause

The root cause of this vulnerability lies in improper memory lifecycle management within Foxit's comment handling subsystem. When comments are removed via scripting APIs, the underlying memory objects are deallocated, but references to these objects may persist in the UI refresh callback chain. The application fails to properly validate object state before accessing memory during UI update operations, resulting in use of dangling pointers.

Attack Vector

Exploitation requires the attacker to craft a malicious PDF document containing embedded JavaScript that performs the following sequence of operations:

  1. Access comment objects within the PDF document via scripting APIs
  2. Delete or remove the comment objects programmatically
  3. Trigger a UI refresh operation that attempts to reference the deleted comment objects

The vulnerability mechanism involves the interaction between Foxit's JavaScript engine and its comment management system. When a malicious PDF is opened by a victim, the embedded script executes and manipulates comment objects. The subsequent UI refresh operation fails to check whether the comment objects are still valid in memory, leading to a use-after-free condition that crashes the application.

For technical implementation details, refer to the Foxit Security Bulletins.

Detection Methods for CVE-2026-5940

Indicators of Compromise

  • Unexpected crashes of Foxit PDF Editor or PDF Reader when opening PDF documents
  • PDF files containing embedded JavaScript with comment manipulation functions
  • Application crash logs indicating memory access violations in comment-related modules
  • Unusual JavaScript execution patterns within PDF documents

Detection Strategies

  • Monitor for Foxit PDF application crashes with memory access violation signatures
  • Implement PDF scanning to detect embedded JavaScript containing comment removal sequences followed by UI refresh calls
  • Deploy endpoint detection rules to identify suspicious PDF files with scripted comment manipulation
  • Analyze crash dumps for stack traces indicating use-after-free patterns in comment handling functions

Monitoring Recommendations

  • Enable application crash reporting and monitoring for Foxit PDF Editor and Reader
  • Configure endpoint protection to log and alert on PDF-related application instabilities
  • Implement file integrity monitoring for incoming PDF documents from untrusted sources
  • Review system event logs for repeated Foxit application crashes that may indicate exploitation attempts

How to Mitigate CVE-2026-5940

Immediate Actions Required

  • Update Foxit PDF Editor and PDF Reader to the latest patched versions immediately
  • Disable JavaScript execution in Foxit PDF applications until patches are applied
  • Avoid opening PDF documents from untrusted or unknown sources
  • Configure email gateways to scan and quarantine suspicious PDF attachments

Patch Information

Foxit has released security updates to address this vulnerability. Users should update their Foxit PDF Editor and PDF Reader installations to the latest available versions. Detailed patch information and download links are available from the Foxit Security Bulletins.

Organizations should prioritize patching based on their risk assessment, considering that exploitation requires user interaction with a malicious PDF document.

Workarounds

  • Disable JavaScript in Foxit PDF applications: Navigate to Edit > Preferences > JavaScript and uncheck "Enable JavaScript Actions"
  • Implement strict PDF filtering at email gateways and web proxies to block potentially malicious documents
  • Use Protected View or Safe Reading Mode when available to limit script execution capabilities
  • Restrict PDF file associations to trusted, fully-patched PDF reader applications
bash
# Disable JavaScript in Foxit via Registry (Windows)
# Create registry key to disable JavaScript execution
reg add "HKEY_CURRENT_USER\Software\Foxit Software\Foxit PDF Editor\Preferences\Others" /v bEnableJS /t REG_DWORD /d 0 /f

# Verify the setting is applied
reg query "HKEY_CURRENT_USER\Software\Foxit Software\Foxit PDF Editor\Preferences\Others" /v bEnableJS

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeUse After Free

  • Vendor/TechFoxit Pdf Editor

  • SeverityMEDIUM

  • CVSS Score5.5

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-416
  • Vendor Resources
  • Foxit Security Bulletins
  • Related CVEs
  • CVE-2026-5942: Foxit PDF Editor Use-After-Free Flaw

  • CVE-2026-5943: Foxit PDF Editor Use-After-Free Flaw

  • CVE-2024-49576: Foxit PDF Editor Use-After-Free RCE Flaw

  • CVE-2026-5937: Foxit PDF Editor DOS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English