Skip to content
High 7.5

Spring AIに悪意ある文書で処理スレッドを停止させられる脆弱性

CVE-2026-59345 First seen on SecPulse

Summary

Spring AIのテキスト抽出処理に、特別に細工された文書を読み込ませるとスタックオーバーフローが発生し、処理スレッドが停止する脆弱性です。影響を受けるのは1.0.0〜1.0.10、1.1.0〜1.1.9、2.0.0〜2.0.2、2.0.3未満の版で、修正版は1.0.11、1.1.10、2.0.2.1、2.0.3です。外部から受け取った文書を扱うシステムは、修正版への更新を優先してください。

AI summary

Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.

Spring AIのテキスト抽出処理に、特別に細工された文書を読み込ませるとスタックオーバーフローが発生し、処理スレッドが停止する脆弱性です。影響を受けるのは1.0.0〜1.0.10、1.1.0〜1.1.9、2.0.0〜2.0.2、2.0.3未満の版で、修正版は1.0.11、1.1.10、2.0.2.1、2.0.3です。外部から受け取った文書を扱うシステムは、修正版への更新を優先してください。

Affected packages

PackageAffected → Fixed
SpringSpring AI
≥ 2.0.0, < 2.0.2.1→ 2.0.2.1
≥ 1.1.0, < 1.1.10→ 1.1.10
≥ 1.0.0, < 1.0.11→ 1.0.11
≥ 2.0.0, < 2.0.3→ 2.0.3
Original description The description as published by the source.

ExtractedTextFormatter is vulnerable to a denial of service when processing untrusted text extracted from documents.

trimAdjacentBlankLines() and alignToLeft() collapse runs of blank lines using regular expressions with a quantified group, and Java's backtracking regex engine recurses one stack frame per repetition of that group.
A specially crafted document can exploit this to exhaust the calling thread's stack, resulting in an uncaught StackOverflowError.
This crashes the thread processing the document; repeated submissions against a bounded worker pool can degrade or deny service to all users, even though any single crash is thread-local rather than JVM-wide.
Any application that processes documents from untrusted sources (document upload, email attachment processing, RAG ingestion, web crawling) through TikaDocumentReader, PagePdfDocumentReader, or ParagraphPdfDocumentReader is impacted, regardless of file type.

Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details