Skip to main content
CVE Vulnerability Database
Vulnerability Database/CVE-2026-13127

CVE-2026-13127: Foxit PDF Editor DOS Vulnerability

CVE-2026-13127 is a denial of service vulnerability in Foxit PDF Editor caused by invalid page object references in thumbnails after JavaScript modifies document structure. This article covers technical details, affected versions, impact, and mitigation strategies.

Published:

CVE-2026-13127 Overview

CVE-2026-13127 is a use-after-free vulnerability [CWE-416] affecting Foxit PDF Editor and Foxit PDF Reader on Microsoft Windows. The flaw is triggered when the application opens a crafted PDF file containing JavaScript that rewrites the document and modifies the page structure. This action invalidates the underlying page objects, yet thumbnail rendering continues to reference the now-invalid pointers. The dangling references cause the application to crash and can be leveraged to execute arbitrary code in the context of the current user.

Critical Impact

An attacker who convinces a user to open a malicious PDF can achieve code execution with full impact to confidentiality, integrity, and availability on the affected host.

Affected Products

  • Foxit PDF Editor on Microsoft Windows
  • Foxit PDF Reader on Microsoft Windows
  • Microsoft Windows (host operating system)

Discovery Timeline

  • 2026-07-08 - CVE-2026-13127 published to NVD
  • 2026-07-09 - Last updated in NVD database

Technical Details for CVE-2026-13127

Vulnerability Analysis

The vulnerability is a use-after-free condition [CWE-416] in Foxit's PDF rendering pipeline. When a PDF document is loaded, the application constructs internal page objects that describe each page's content stream and structural metadata. Embedded JavaScript can then invoke document manipulation APIs that rewrite the page tree, freeing or replacing the original page objects. The thumbnail rendering subsystem does not synchronize with these structural changes and continues to dereference pointers to the freed page objects. This produces memory corruption that an attacker can shape into arbitrary code execution.

Root Cause

The root cause is missing lifetime coordination between the JavaScript-driven document mutation logic and the thumbnail rendering component. Page objects freed during a structural rewrite are not removed from the thumbnail cache, leaving stale references in use.

Attack Vector

Exploitation requires local user interaction. A victim must open a crafted PDF file in a vulnerable Foxit product. The embedded JavaScript then mutates the document to invalidate page objects while thumbnails still reference them, corrupting process memory. No prior authentication is required, and successful exploitation grants the attacker code execution at the privilege level of the user opening the file.

No verified public proof-of-concept code is available for CVE-2026-13127. See the Foxit Security Bulletins for vendor technical details.

Detection Methods for CVE-2026-13127

Indicators of Compromise

  • Unexpected crashes of FoxitPDFEditor.exe or FoxitPDFReader.exe with access violations referencing freed heap regions shortly after PDF documents are opened.
  • PDF files delivered via email, chat, or download that contain JavaScript actions invoking page tree manipulation APIs such as Document.insertPages, Document.deletePages, or Document.replacePages.
  • Windows Error Reporting (WER) entries or crash dumps pointing to thumbnail generation code paths in Foxit modules.

Detection Strategies

  • Inspect inbound PDF attachments for /JS and /JavaScript action dictionaries combined with page-tree mutation calls; flag or detonate them in a sandbox before delivery.
  • Correlate process crashes of Foxit binaries with recent PDF file opens using endpoint telemetry to surface attempted exploitation.
  • Hunt for anomalous child processes or in-memory payloads spawned by FoxitPDFEditor.exe or FoxitPDFReader.exe, which are unusual behaviors for a PDF viewer.

Monitoring Recommendations

  • Enable process command-line and image-load logging for Foxit processes and forward the events to your SIEM or data lake.
  • Monitor file creation and modification activity performed by Foxit processes, particularly writes to autorun locations, %TEMP%, or %APPDATA%.
  • Track outbound network connections initiated by Foxit processes immediately after PDF documents are opened, since a benign viewer session rarely produces new external traffic.

How to Mitigate CVE-2026-13127

Immediate Actions Required

  • Apply the latest security update from Foxit as listed in the Foxit Security Bulletins.
  • Restrict opening of PDF files from untrusted sources and enforce mail gateway policies that quarantine PDFs containing JavaScript.
  • Disable JavaScript execution inside Foxit PDF Editor and Foxit PDF Reader until patching is complete.

Patch Information

Foxit publishes fixed versions and remediation guidance in its security bulletins. Consult the Foxit Security Bulletins advisory for the exact patched build numbers for Foxit PDF Editor and Foxit PDF Reader on Windows, and deploy them through your standard patch management workflow.

Workarounds

  • In the Foxit application, navigate to PreferencesJavaScript and clear the Enable JavaScript Actions option to prevent embedded scripts from mutating documents.
  • Use application allow-listing to prevent Foxit processes from spawning unexpected child processes such as cmd.exe, powershell.exe, or rundll32.exe.
  • Route PDF attachments through a detonation sandbox and strip active content before delivery to end users.
bash
# Configuration example: disable Foxit JavaScript via registry on Windows
reg add "HKCU\Software\Foxit Software\Foxit PDF Editor\Preferences\JavaScript" /v bEnableJS /t REG_DWORD /d 0 /f
reg add "HKCU\Software\Foxit Software\Foxit PDF Reader\Preferences\JavaScript" /v bEnableJS /t REG_DWORD /d 0 /f

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

Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.