Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-2021-21822

CVE-2021-21822: Foxit Reader Use-After-Free Vulnerability

CVE-2021-21822 is a use-after-free vulnerability in Foxit Reader's JavaScript engine that enables arbitrary code execution. This article covers the technical details, affected versions, impact, and mitigation.

Published: February 25, 2026

CVE-2021-21822 Overview

A use-after-free vulnerability exists in the JavaScript engine of Foxit Software's PDF Reader, version 10.1.3.37598. A specially crafted PDF document can trigger the reuse of previously freed memory, which can lead to arbitrary code execution. An attacker needs to trick the user into opening a malicious file or site to trigger this vulnerability if the browser plugin extension is enabled.

Critical Impact

This vulnerability enables remote attackers to execute arbitrary code on victim systems through maliciously crafted PDF documents, potentially leading to complete system compromise when users open untrusted PDF files or visit malicious websites with the Foxit browser plugin enabled.

Affected Products

  • Foxit Reader version 10.1.3.37598
  • Foxit PDF Reader with JavaScript engine enabled
  • Foxit Reader browser plugin extension

Discovery Timeline

  • 2021-05-10 - CVE CVE-2021-21822 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2021-21822

Vulnerability Analysis

This vulnerability is classified as CWE-416 (Use After Free), a memory corruption vulnerability that occurs when a program continues to use a pointer after the memory it references has been freed. In the context of Foxit PDF Reader's JavaScript engine, this flaw allows attackers to manipulate memory allocation patterns through carefully constructed PDF documents containing malicious JavaScript code.

The exploitation path requires user interaction—specifically, the victim must open a malicious PDF file or navigate to a compromised website while the Foxit browser plugin is enabled. Once triggered, the vulnerability allows the reuse of previously freed memory regions, which attackers can leverage to gain control over program execution flow and ultimately achieve arbitrary code execution with the privileges of the current user.

Root Cause

The root cause of this vulnerability lies in improper memory management within Foxit PDF Reader's JavaScript engine. When processing certain JavaScript operations embedded in PDF documents, the application fails to properly validate memory references before reuse. This occurs when memory is deallocated but the corresponding pointer is not nullified, leaving a dangling pointer that can be dereferenced during subsequent operations. The JavaScript engine's handling of object lifecycle management does not adequately protect against scenarios where freed memory blocks are reallocated and subsequently accessed through stale references.

Attack Vector

The attack vector is network-based and requires user interaction. An attacker can exploit this vulnerability through multiple delivery mechanisms:

  1. Malicious PDF Documents: Crafting a PDF file containing embedded JavaScript code designed to trigger the use-after-free condition, then distributing it via email attachments, file-sharing platforms, or download links.

  2. Drive-by Download Attacks: If the Foxit browser plugin extension is enabled, attackers can host malicious PDF content on compromised or attacker-controlled websites, triggering the vulnerability when victims visit the page.

  3. Social Engineering: Combining the technical exploit with social engineering tactics to convince targets to open the malicious PDF document.

The vulnerability exploits the trust relationship users have with PDF documents, which are commonly used for business communications and official documentation. For detailed technical analysis, refer to the Talos Intelligence Vulnerability Report.

Detection Methods for CVE-2021-21822

Indicators of Compromise

  • Unusual JavaScript execution patterns within PDF documents processed by Foxit Reader
  • Foxit Reader processes exhibiting abnormal memory allocation behavior or crashes
  • Suspicious PDF files with heavily obfuscated or encoded JavaScript content
  • Unexpected child processes spawned by FoxitReader.exe or FoxitPDFReader.exe

Detection Strategies

  • Monitor for suspicious PDF files with embedded JavaScript that perform unusual memory operations
  • Implement endpoint detection rules for Foxit Reader processes attempting to execute shell commands or spawn child processes
  • Deploy behavioral analysis to detect memory corruption exploitation attempts targeting PDF readers
  • Analyze network traffic for PDF downloads from untrusted or newly registered domains

Monitoring Recommendations

  • Enable enhanced logging for Foxit Reader application events and crashes
  • Configure SIEM rules to correlate PDF file access with subsequent suspicious process behavior
  • Monitor endpoint telemetry for use-after-free exploitation indicators such as heap spray patterns
  • Track browser plugin activity related to Foxit PDF Reader

How to Mitigate CVE-2021-21822

Immediate Actions Required

  • Update Foxit PDF Reader to the latest available version that addresses this vulnerability
  • Disable JavaScript execution in Foxit Reader via Edit → Preferences → JavaScript → uncheck "Enable JavaScript Actions"
  • Disable or remove the Foxit browser plugin extension if not required for business operations
  • Implement application whitelisting to prevent unauthorized code execution

Patch Information

Foxit Software has addressed this vulnerability in subsequent releases of Foxit PDF Reader. Organizations should upgrade to the latest version available from the official Foxit website. For detailed vulnerability information and patch guidance, review the Talos Intelligence Vulnerability Report.

Workarounds

  • Disable JavaScript execution in Foxit Reader preferences as a primary mitigation
  • Remove or disable the Foxit browser plugin to eliminate the drive-by attack vector
  • Use alternative PDF readers that are not affected by this vulnerability until patching is complete
  • Implement network-level filtering to scan and sanitize PDF attachments in email and web traffic
bash
# Configuration example - Disable JavaScript in Foxit Reader via registry (Windows)
# Run as Administrator
reg add "HKCU\Software\Foxit Software\Foxit Reader\Preferences\Trust Manager" /v bEnableJS /t REG_DWORD /d 0 /f

# Verify the setting was applied
reg query "HKCU\Software\Foxit Software\Foxit Reader\Preferences\Trust Manager" /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 Reader

  • SeverityHIGH

  • CVSS Score8.8

  • EPSS Probability19.80%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-416
  • Technical References
  • Talos Intelligence Vulnerability Report
  • Related CVEs
  • CVE-2023-38573: Foxit Reader Use-After-Free Vulnerability

  • CVE-2023-35985: Foxit Reader RCE Vulnerability

  • CVE-2020-14425: Foxit Reader RCE 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