← VULNERABILITIES

CVE-2026-59340

Denial of Service via crafted PDF in PagePdfDocumentReader

Medium · 6.5Fix available
CVSS
6.5
EPSS
0.41% (p27)
Published
2026-11-23
Age
6d old
Modified
2026-11-24
Product
Spring Spring AI

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

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.

Fixed in

1.0.11 · 1.1.10 · 2.0.2.1 · 2.0.3

Affected packages

EcosystemPackageRangeFixed
vendorSpring AI>=1.0.0, <1.0.111.0.11
vendorSpring AI>=1.1.0, <1.1.101.1.10
vendorSpring AI>=2.0.0, <2.0.2.12.0.2.1
vendorSpring AI>=2.0.0, <2.0.32.0.3

Sources

  • NVD · first seen 6d ago · NVD terms of use
  • CVE List · first seen 6d ago · CVE Terms of Use

References

JSON