Skip to content
DayZeroHub
Medium Not yet writtenCVSS 6.5CVE-2026-59340

CVE-2026-59340: Denial of Service via crafted PDF in PagePdfDocumentReader

Spring Spring AI

Preliminary notice: published right away from the original source data, without editorial write-up. It will shortly be replaced by a written and reviewed version.

Summary

CVE-2026-59340: medium-severity vulnerability (CVSS 6.5) in Spring Spring AI.

What happened

Original description from the source: 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.

Why it matters

Medium severity, CVSS 6.5.

Affected products and versions

Spring Spring AI >= 2.0.0, < 2.0.3; Spring Spring AI >= 1.1.0, < 1.1.10; Spring Spring AI >= 1.0.0, < 1.0.11; Spring Spring AI >= 2.0.0, < 2.0.2.1

ProductVersionsFixed in
Spring Spring AI>= 2.0.0, < 2.0.3—
Spring Spring AI>= 1.1.0, < 1.1.10—
Spring Spring AI>= 1.0.0, < 1.0.11—
Spring Spring AI>= 2.0.0, < 2.0.2.1—

Action recommended by the source

See the official references for the fix or mitigation.

Information taken from the source or the vendor. Verify it at the original link before acting.

Sources and references

Weaknesses (CWE): CWE-770

Relevant change history

  1. Published

    Preliminary advisory published.