CVE-2021-21822
Foxit PDF Reader vulnerability analysis and mitigation

Overview

CVE-2021-21822 is a use-after-free vulnerability discovered in Foxit Software's PDF Reader version 10.1.3.37598. The vulnerability was disclosed on April 26, 2021, and patched on May 6, 2021. The issue affects the JavaScript engine of the PDF reader, specifically in how it handles FileAttachment annotations (Talos Report).

Technical details

The vulnerability exists in the JavaScript engine's handling of certain annotation types. When a specially crafted PDF document triggers a page change and creates a FileAttachment annotation, a race condition occurs between the page close handler and annotation creation. The page close handler destroys the annotation, freeing its memory, but the annotation creation code continues execution with the freed memory, leading to memory corruption. The vulnerability has a CVSS v3.1 score of 8.8 (HIGH) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H (NVD).

Impact

If successfully exploited, this vulnerability can lead to arbitrary code execution on the affected system. The vulnerability is particularly concerning as it affects one of the most popular PDF readers with a large user base. An attacker could execute malicious code with the same privileges as the user running the PDF reader (Talos Report).

Mitigation and workarounds

Foxit Software released a patch for this vulnerability in version 10.1.4.37651. However, it was later discovered that the initial fix was incomplete, leading to the assignment of a new CVE (CVE-2021-21870) for the same vulnerability pattern in the patched version. Users are advised to update to the latest version of Foxit Reader that includes complete fixes for these vulnerabilities (Talos Report).

Additional resources


SourceThis report was generated using AI

Related Foxit PDF Reader vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-9330HIGH7.8
  • Foxit PDF ReaderFoxit PDF Reader
  • cpe:2.3:a:foxit:pdf_reader
NoNoSep 02, 2025
CVE-2025-9329HIGH7.8
  • Foxit PDF ReaderFoxit PDF Reader
  • cpe:2.3:a:foxit:pdf_reader
NoYesSep 02, 2025
CVE-2025-9328HIGH7.8
  • Foxit PDF ReaderFoxit PDF Reader
  • cpe:2.3:a:foxit:pdf_reader
NoYesSep 02, 2025
CVE-2025-9326HIGH7.8
  • Foxit PDF ReaderFoxit PDF Reader
  • cpe:2.3:a:foxit:pdf_reader
NoYesSep 02, 2025
CVE-2025-9327MEDIUM5.5
  • Foxit PDF ReaderFoxit PDF Reader
  • cpe:2.3:a:foxit:pdf_reader
NoYesSep 02, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management