MODERATE 6.5
CVE-2026-40980
Spring AI Vulnerable to OOM by attacker-controlled PDF
Description
In Spring AI, a malicious PDF file can be crafted that triggers the allocation of unreasonable amounts of memory when handled by ForkPDFLayoutTextStripper.
Affected versions: Spring AI: 1.0.0 - 1.0.5 (fixed in 1.0.6), 1.1.0 - 1.1.4 (fixed in 1.1.5)
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.springframework.ai » spring-ai-pdf-document-reader | >= 1.0.0, < 1.0.6>= 1.1.0, < 1.1.5 | 1.0.6, 1.1.5 |
Blast radius
1affected artifacts
11affected versions
22dependent artifacts (est.)
164dependent versions
59% of the dependent artifacts (13) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 61 |
| 2 hops | 103 |
Most used dependents
- 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
- com.alibaba.cloud.ai » spring-ai-alibaba-studio-server-core2 usages
- io.github.agentic-spring-ai » agentic-spring-ai-starter-document-parser-apache-pdfbox2 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
- ai.telosforge » kimaira-starter-etl0 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.
References
| Advisory | NVD CVE-2026-40980 | nvd.nist.gov |
| Package | spring-projects/spring-ai | github.com |
| Web | security/cve-2026-40980 | spring.io |
