Vulnerability  ·  2026-12-04

Spring AI document-ingestion resource exhaustion (Tika unbounded memory + regex backtracking) and Bedrock media SSRF

VulnerabilityMedium impactGlobalCVE-2026-59338
A cluster of Spring AI advisories was published 2 Dec 2026. The document reader disables Tika's content-size cap (unbounded buffering), and the text formatter's regex collapse is vulnerable to exponential backtracking on crafted text; separately the Bedrock converse component's shared URL blocklist is incomplete, enabling SSRF via media URLs.
These hit the ingestion path of RAG/document pipelines: an attacker who can feed a document or media URL to an AI application can exhaust memory/CPU on the ingestion worker (DoS) or, via the SSRF, reach internal endpoints using the model-serving host's network position. Lower severity but real for multi-tenant/deployed AI ingestion.
CVE-2026-59338: TikaDocumentReader disables Tika's built-in content-size limit, buffering parsed text with no absolute bound (memory exhaustion). CVE-2026-59345: ExtractedTextFormatter uses backtracking regexes to collapse blank-line runs, recursing one stack frame per line — a ReDoS against untrusted extracted text. CVE-2026-59336: spring-ai-bedrock-converse's URLValidator.isBlockedAddress has an incomplete blocklist, allowing SSRF via media URLs.
Spring AI TikaDocumentReader / ExtractedTextFormatter / spring-ai-bedrock-converse
Apply the Spring AI patch release for these advisories; enforce document size/line limits on ingestion and tighten the media-URL blocklist where the framework version allows configuration.
NVD — CVE-2026-59338NVD — CVE-2026-59345NVD — CVE-2026-59336
See this in the live feed Explore related AI security and governance findings — updated every morning.
Open the feed →