CVE-2026-59340
CVE-2026-59340 · Denial of Service via crafted PDF in PagePdfDocumentReader
CVSS 6.5 · Medium · EPSS 0.4% · Public exploit · Fix available
Compare with your installed version
Affected products and known fixed versions are public information. Compare them with your installed version.
- spring aiUpdate to 1.0.11 / 1.1.10 / 2.0.3
Assess your server’s risks
The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.
Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.
curl -fsSL https://patchfirst.dev/check.sh | shChannels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
- Published
- Updated
Affected products and versions
spring ai
- Versions
- ≥ 2.0.0, < 2.0.3: Affected (oss)
- ≥ 1.1.0, < 1.1.10: Affected (enterprise only)
- ≥ 1.0.0, < 1.0.11: Affected (enterprise support only)
- ≥ 2.0.0, < 2.0.2.1: Affected (enterprise only)
Update to 1.0.11; Update to 1.1.10; Update to 2.0.3