CVE-2026-59340
Denial of Service via crafted PDF in PagePdfDocumentReader
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 Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.springframework.ai » spring-ai-pdf-document-reader | >= 1.0.0, <= 1.0.10>= 1.1.0, <= 1.1.9>= 2.0.0, < 2.0.3 | 2.0.3 |
Blast radius
79% of the dependent artifacts (23) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 65 |
| 2 hops | 115 |
Most used dependents
- com.chinagoods.framework.thinkcloud » think-cloud-ai-llm11 usages
- org.conductoross » conductor-ai5 usages
- com.alibaba.cloud.ai » spring-ai-alibaba-starter-document-parser-apache-pdfbox2 usages
- io.github.ngirchev » opendaimon-spring-ai2 usages
- io.github.agentic-spring-ai » agentic-spring-ai-starter-document-parser-apache-pdfbox2 usages
- com.alibaba.cloud.ai » spring-ai-alibaba-studio-server-core2 usages
- org.conductoross » conductor-server1 usages
- cn.echoparrot » echoparrot-core1 usages
- io.github.ngirchev » aibot-spring-ai1 usages
- com.alibaba.cloud.ai » spring-ai-alibaba-studio-server-openapi1 usages
- io.gitee.yeshizhe » echoparrot-core1 usages
- org.conductoross » conductor-server-lite0 usages
- com.alibaba.cloud.ai » spring-ai-alibaba-starter-document-parser-bibtex0 usages
- com.alibaba.cloud.ai » spring-ai-alibaba-starter-document-reader-arxiv0 usages
- io.github.ngirchev » opendaimon-app0 usages
Computed from the dependency graph of build 20261125.2201 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
