CVE-2026-59340
Published:November 23, 2026
Updated:November 24, 2026
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.
Affected Packages
https://github.com/spring-projects/spring-ai.git (GITHUB):
Affected version(s) >=v2.1.0-M1 <v2.1.0Fix Suggestion:
Update to version v2.1.0https://github.com/spring-projects/spring-ai.git (GITHUB):
Affected version(s) >=v0.8.0 <v2.0.3 || >=v1.0.0-M1 <v2.0.3 || >=v1.1.0-M1 <v2.0.3 || >=v2.0.0-M1 <v2.0.3Fix Suggestion:
Update to version v2.0.3org.springframework.ai:spring-ai-pdf-document-reader (JAVA):
Affected version(s) >=2.0.0-M1 <2.0.3 || >=1.1.0-M1 <2.0.3 || >=1.0.0-M1 <2.0.3 || =0.8.1 <2.0.3Fix Suggestion:
Update to version 2.0.3org.springframework.ai:spring-ai-pdf-document-reader (JAVA):
Affected version(s) >=2.1.0-M1 <2.1.0Fix Suggestion:
Update to version 2.1.0Related Resources (2)
Do you need more information?
Contact UsCVSS v4
Base Score:
7.1
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
LOW
User Interaction
NONE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
NONE
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
6.5
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Weakness Type (CWE)
Allocation of Resources Without Limits or Throttling