Denial of Service via crafted PDF in PagePdfDocumentReader

MEDIUM | NOVEMBER 19, 2026 | CVE-2026-59340

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.

Affected Spring Products and Versions

Spring AI:

  • 2.0.0 - 2.0.2
  • 1.1.0 - 1.1.9
  • 1.0.0 - 1.0.10

Mitigation

Users of affected versions should upgrade to the corresponding fixed version.
Fix versionAvailability
2.0.3OSS
2.0.2.1Enterprise Support Only
1.1.10Enterprise Support Only
1.0.11Enterprise Support Only

No further mitigation steps are necessary.

Credit

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

History

  • 2026-11-19: Initial vulnerability report published.

Get ahead

VMware offers training and certification to turbo-charge your progress.

Learn more

Get support

TrueSource Spring Enterprise offers support and binaries for OpenJDK™, Spring, and Apache Tomcat® in one simple subscription.

Learn more

Upcoming events

Check out all the upcoming events in the Spring community.

View all