CVE-2026-59340 - Denial of Service via crafted PDF in PagePdfDocumentReader
Vulnerability · Reported by NVD · · CWE-770
- Severity
- Medium Risk score 65/100
- CVSS
- 6.5 v3.1 · from NVD
- Exploit chance (EPSS)
- 0.41% Higher than 27% of CVEs
- Known exploited
- No Not in CISA KEV
Summary
PagePdfDocumentReader and ParagraphPdfDocumentReader are vulnerable to a denial of service when processing untrusted PDF input. The underlying text extraction logic reconstructs layout from a PDF's glyph positions and limits how much memory can be allocated for any single computed gap, but does not limit the cumulative allocation across an entire page. A specially crafted PDF can exploit this to force excessive memory allocation during processing, resulting in OutOfMemoryError. Depending on JVM configuration, this can cause request failures with degraded service under repeated exploitation, or immediate JVM termination when ExitOnOutOfMemoryError options are used. Any application that processes PDFs from untrusted sources (document upload, email attachment processing, RAG ingestion, web crawling) using either affected reader is impacted.
How this vulnerability can be exploited
An attacker can exploit this vulnerability remotely over the network, with a low-privileged account, and without any action from a user. Attack complexity is low, so no special conditions are needed. If successful, the attacker could crash or disrupt the service.
Is it being exploited?
The EPSS model estimates a 0.41% chance this CVE will be exploited in the next 30 days, which is low and higher than 27% of all published CVEs.
Patch priority and what to do
Patch during routine updates. Lower severity, but keep it on your list. 1) Check whether you run the affected product and version. 2) Apply the vendor update or patch listed in the advisory. 3) Until patched, restrict network access to the service (firewall, VPN, WAF rules). 4) Review logs for signs of exploitation since the publication date.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Tags
CVE-2026-59340
Sources & references
- Original article / advisory (NVD) ↗
- NIST NVD: CVE-2026-59340 ↗
- CVE.org record ↗
- FIRST.org EPSS model ↗
How this data is collected: methodology & sources.