CVE-2026-45802

FPDI: Memory Exhaustion and Endless Loop in FPDI leads to Denial of Service

Published Jun 11, 2026 CVSS 4.0 · 6 Medium EPSS < 1% KEV · Not listed
Description
FPDI is a collection of PHP classes that facilitate reading pages from existing PDF documents and using them as templates in FPDF. Prior to version 2.6.7, an attacker can upload a small, malicious PDF file that will cause the server-side script to crash due to memory exhaustion or a script time-out. Repeated attacks can lead to sustained service unavailability. This issue has been patched in version 2.6.7.

Analysis

AI-generated

Technical impact

FPDI is a collection of PHP classes that help developers read pages from existing PDF documents and use them as templates in FPDF. For versions earlier than 2.6.7, an attacker can upload a small, malicious PDF that will cause the server-side script to crash because of memory exhaustion or a script time-out. The crash leads to a cessation of service until the script is restarted, effectively denying service to legitimate users. Repeated attacks can lead to sustained service unavailability. This vulnerability is a classic example of resource exhaustion, identified by CWE-400 and CWE-770.

Affected Systems

The vulnerability affects Setasign’s FPDI library, specifically any installation using a version earlier than 2.6.7. Users who integrate FPDI into PHP web applications through file‑upload mechanisms and have not updated to the latest release are at risk.

Risk and Exploitability

The CVSS score of 6 indicates a moderate severity. No EPSS data is currently available, so the likelihood of exploitation cannot be precisely quantified. The vulnerability is not listed in the CISA KEV catalog. The likely attack vector is remote, via an HTTP request that uploads a malicious PDF to a PHP script utilizing FPDI. Repeat attacks can keep the service unavailable, so the risk to availability is significant even without confirmed exploits.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade FPDI to version 2.6.7 or newer
  • If an upgrade is not immediately possible, limit the size and number of PDF uploads and run FPDI in a sandboxed or resource‑restricted environment
  • Apply application‑level input validation to detect malformed PDFs and reject them before processing

Generated by OpenCVE AI on June 11, 2026 at 22:14 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-2mgw-7q6p-8grg FPDI: Memory Exhaustion and Endless Loop in FPDI leads to Denial of Service
History
Type Values Removed Values Added
First Time appeared Setasign
Setasign fpdi
Vendors & Products Setasign
Setasign fpdi
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description FPDI is a collection of PHP classes that facilitate reading pages from existing PDF documents and using them as templates in FPDF. Prior to version 2.6.7, an attacker can upload a small, malicious PDF file that will cause the server-side script to crash due to memory exhaustion or a script time-out. Repeated attacks can lead to sustained service unavailability. This issue has been patched in version 2.6.7.
Title FPDI: Memory Exhaustion and Endless Loop in FPDI leads to Denial of Service
Weaknesses CWE-400
CWE-770
References
Metrics cvssV4_0

{'score': 6, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-400

    Uncontrolled Resource Consumption

  • CWE-770

    Allocation of Resources Without Limits or Throttling

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jun 12, 2026, 1:49 PM
Reserved
May 13, 2026, 8:19 AM
Status
Deferred
Published
Jun 11, 2026, 8:16 PM
Modified
Oct 26, 2026, 11:10 AM