CVE-2025-54869: Setasign/fpdi Denial of Service Vulnerability

MODERATE
Advisory Identifier: GHSA-jxhh-4648-vpp3
CWE-770
Published
Advisory Summary

CVE-2025-54869 is a MODERATE denial of service vulnerability (CWE-770: Allocation of Resources Without Limits or Throttling) affecting Setasign/fpdi libraries in the Packagist ecosystem. The issue involves fpdi allows memory exhaustion (oom) in pdf parser which leads to denial of service. Remediation is available by upgrading affected packages to version 2.6.4.

CVE-2025-54869 at a Glance

CVE Identifier CVE-2025-54869
GHSA Identifier GHSA-jxhh-4648-vpp3
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-770: Allocation of Resources Without Limits or Throttling
Affected Product Setasign/fpdi
Package Ecosystem Packagist
Published Date
Last Updated

How to Fix CVE-2025-54869

To remediate this vulnerability, upgrade all affected Setasign/fpdi dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

setasign/fpdi fixed: 2.6.4
Upgrade setasign/fpdi to 2.6.4
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for setasign/fpdi

How to Check if You Are Affected

To determine whether your application is affected by CVE-2025-54869, inspect your project dependencies for Setasign/fpdi:

inspect dependencies for setasign/fpdi

Analyze the terminal output to locate any version of Setasign/fpdi in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.6.4), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-770: Allocation of Resources Without Limits or Throttling, where the product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated. In Setasign/fpdi, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact This is a significant Denial of Service (DoS) vulnerability. Any application that uses FPDI to process user-supplied PDF files is at risk. An attacker can upload a small, malicious PDF file that will cause the server-side script to crash due to memory exhaustion. Repeated attacks can lead to sustained service unavailability. ### Patches Fixed as of version 2.6.4 ### Workarounds No.

CVE-2025-54869 Affected Setasign/fpdi Versions

1 component(s)
Fixed Versions:
2.6.4
Product / Package Ecosystem Affected Versions Fixed Version
setasign/fpdi
Packagist
< 2.6.4
2.6.4

References

Frequently Asked Questions

What is CVE-2025-54869?
CVE-2025-54869 is a security vulnerability in Setasign/fpdi involving FPDI allows Memory Exhaustion (OOM) in PDF Parser which leads to Denial of Service under CWE-770: Allocation of Resources Without Limits or Throttling.
Which Setasign/fpdi versions are affected?
Affected versions include releases prior to 2.6.4 across affected packages: setasign/fpdi.
What version fixes CVE-2025-54869?
Upgrading to 2.6.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is setasign/fpdi affected?
Yes, setasign/fpdi is affected in releases prior to 2.6.4. Upgrade your dependency to 2.6.4 or later.
What CWE is associated with CVE-2025-54869?
CVE-2025-54869 is classified under CWE-770: Allocation of Resources Without Limits or Throttling (The product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated.).
How can I check Packagist dependencies for CVE-2025-54869?
Run the dependency tree command: 'inspect dependencies for setasign/fpdi'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-jxhh-4648-vpp3",
  "modified" : "2025-08-06T14:31:50Z",
  "published" : "2025-08-05T15:23:54Z",
  "aliases" : [ "CVE-2025-54869" ],
  "summary" : "FPDI allows Memory Exhaustion (OOM) in PDF Parser which leads to Denial of Service",
  "details" : "### Impact\nThis is a significant Denial of Service (DoS) vulnerability. Any application that uses FPDI to process\nuser-supplied PDF files is at risk. An attacker can upload a small, malicious PDF file that will cause\nthe server-side script to crash due to memory exhaustion. Repeated attacks can lead to sustained\nservice unavailability.\n\n### Patches\nFixed as of version 2.6.4\n\n### Workarounds\nNo.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "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"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "setasign/fpdi"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.6.4"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/Setasign/FPDI/security/advisories/GHSA-jxhh-4648-vpp3"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-54869"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/Setasign/FPDI/commit/ba671ba9221cffd32c2dda87316c19f522a1c5f0"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/Setasign/FPDI"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-770" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-08-05T15:23:54Z",
    "nvd_published_at" : "2025-08-06T00:15:31Z"
  }
}