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

- Severity: Medium 6.5 (CVSS:3.1, scored by vmware) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.51%, higher than 44% of CVEs (2026-12-01)
- Published: 2026-11-23T10:23:21.629Z
- Modified: 2026-11-24T15:17:37.020Z
- Weaknesses: CWE-770
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: vmware

## Description

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.

(As written by CVE List.)

## Affected

- Spring Spring AI: from 2.0.0 before 2.0.3; from 1.1.0 before 1.1.10; from 1.0.0 before 1.0.11; from 2.0.0 before 2.0.2.1

## References

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

## Sources

- CVE List: [CVE-2026-59340](https://www.cve.org/CVERecord?id=CVE-2026-59340), CVE Terms of Use, modified 2026-11-24
- NVD: [CVE-2026-59340](https://nvd.nist.gov/vuln/detail/CVE-2026-59340), Public domain, modified 2026-11-24

---

Page: https://cve.day/CVE-2026-59340 · Whole record: https://cve.day/CVE-2026-59340.json · Rebuilt by cve.day 2026-11-25T22:59:52.638Z
