Medium, CVSS 6.5MavenPublished
Spring AI Vulnerable to OOM by attacker-controlled PDF
CVE-2026-40980 · GHSA-26gg-9gv2-v27j
- Affected
- Maven org.springframework.ai:spring-ai-pdf-document-reader >= 1.0.0, < 1.0.6; >= 1.1.0, < 1.1.5
- Fixed in
- 1.1.51.0.6· Vendor fix available
- Issue
- 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)
Recommended action: Upgrade to 1.1.5 or 1.0.6 by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.