Denial of Service Vulnerability in PagePdfDocumentReader and ParagraphPdfDocumentReader by an Untrusted PDF Input
CVE-2026-59340

6.5MEDIUM

Key Information:

Vendor

Spring

Status
Vendor
CVE Published:
23 November 2026

What is CVE-2026-59340?

The PagePdfDocumentReader and ParagraphPdfDocumentReader are susceptible to a denial of service when handling untrusted PDF files. These components utilize a text extraction mechanism that reconstructs layout based on glyph positions and imposes a limit on the memory allocated for individual gaps. However, they fail to restrict total memory allocation across an entire page. An attacker can craft a malicious PDF, leading to excessive memory demand, which may trigger an OutOfMemoryError during processing. This could result in degraded service due to repeated attempts, or immediate termination of the Java Virtual Machine (JVM) if the ExitOnOutOfMemoryError option is activated. Applications that process PDFs from untrusted sources—such as document uploads, email attachments, or web crawling—are at risk when using either of these readers.

Affected Version(s)

Spring AI 2.0.0 < 2.0.3

Spring AI 1.1.0 < 1.1.10

Spring AI 1.0.0 < 1.0.11

References

CVSS V3.1

Score:
6.5
Severity:
MEDIUM
Confidentiality:
None
Integrity:
None
Availability:
None
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
Low
User Interaction:
None
Scope:
Unchanged

Timeline

  • Vulnerability published

  • Vulnerability Reserved

Credit

The issue was reported responsibly by Chae Jisung (Jisung Chae) – https://github.com/jisung-02
.