# CVE-2026-59340: Denial of Service via crafted PDF in PagePdfDocumentReader

- Priority: **Routine**
- Reason: Not severe (CVSS 6.5, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-11-23 · Modified: 2026-11-24
- Record: https://cvemate.com/vulnerability/CVE-2026-59340 · JSON: https://cvemate.com/vulnerability/CVE-2026-59340/json

## Description

```text
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.
```

## Signals

- CVSS: 6.5 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.507%, percentile 44.874%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- spring spring ai: ≥ 2.0.0, \< 2.0.3 \| ≥ 1.1.0, \< 1.1.10 \| ≥ 1.0.0, \< 1.0.11 \| ≥ 2.0.0, \< 2.0.2.1

## References

- <https://spring.io/security/cve-2026-59340>

---

Data as of 2026-12-05T04:04:56.811Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
