CVE-2026-47851 is a StackOverflowError in Spring AI's PDF ingestion layer, affecting versions 1.0.x through 2.0.0. The vulnerability stems from recursive parsing of PDF table-of-contents structures—malformed documents can exhaust the stack in the ingestion thread, crashing the operation. This is not a novel flaw; it originates from PDFBox, the underlying parsing library, which carries two decades of accumulated vulnerability debt (XXE, deserialization, DoS). Spring AI inherited the vulnerable path, likely through dependency integration rather than introducing it themselves. The real story is what happens when this vulnerability lands in an AI framework versus a traditional application.
A StackOverflowError in a standard Java service is a reliability incident. In Spring AI's document loader, it's a knowledge integrity failure. The ingestion pipeline feeds parsed content directly into vector stores and RAG indices that downstream inference treats as authoritative. When the parsing thread dies mid-document, Spring AI doesn't roll back the embedding operation—it leaves partial or zero embeddings in the vector store, creating silent data absence rather than obvious failure. Users querying the system retrieve incomplete results with no indication the contamination came from a malicious PDF that crashed the parser hours or days earlier.
The three-version-branch survival (1.0.x through 2.0.0) reflects a structural gap: AI framework security programs focus on model and prompt injection threats where research publishes, while document parsing falls between AI security and traditional AppSec, getting audited by neither. Parsing code is treated as plumbing—no one promotes for improving table-of-contents handling—so it gets copied forward branch-to-branch with compatibility shims but no security archaeology.
What makes this worse: once a malformed PDF enters your knowledge base, remediation isn't just patching Spring AI. You may need to re-index vector stores, audit downstream inference that incorporated the corrupted content, or retrain models that treated the poisoned embeddings as ground truth. The CVSS 7.5 DoS score captures the immediate failure but misses the compounding blast radius into your knowledge infrastructure.
Check your deployment: identify which PDFBox version Spring AI pulls in (check your dependency tree), verify your Spring AI version is patched (1.0.0-M4+ or 2.0.0+ contain fixes), and audit your vector store for documents that failed to embed completely around the time of any StackOverflowErrors in your logs. If you're on unpatched versions, upgrade and consider re-indexing affected knowledge bases as a precautionary measure—this isn't just a patch, it's a data integrity problem masquerading as a reliability bug.