CVE-2026-59340: Denial of Service via crafted PDF in PagePdfDocumentReader
Vulnerability summary
CVE-2026-59340 is a medium (CVSS 6.5) vulnerability in spring spring ai. EPSS estimates a 0.51% chance of exploitation in the next 30 days, higher than 44.8% of scored vulnerabilities.
Not severe (CVSS 6.5, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Timeline
- 23-11-2026PublishedVulnerability first disclosed.
- 24-11-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
2 scores · 2 sources · 1 version- NVDNIST6.5MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
0.51%
Chance of exploitation in the next 30 days
Percentile
45%
Versus all other CVEs
30-day change
Change unavailable
Change unavailable
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Spring1 product
- 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
1 vendor · 1 product