Spring AIのTikaによる文書読み込みで、メモリを使い果たされる脆弱性
Summary
Spring AIのTikaDocumentReaderには、抽出するテキストの総量に上限がない脆弱性があり、サービス妨害(DoS)につながるおそれがあります。影響するのは1.0.11未満、1.1.10未満、2.0.2.1未満、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のTikaDocumentReaderには、抽出するテキストの総量に上限がない脆弱性があり、サービス妨害(DoS)につながるおそれがあります。影響するのは1.0.11未満、1.1.10未満、2.0.2.1未満、2.0.3未満の版で、1.0.11、1.1.10、2.0.2.1、2.0.3の修正版で直ります。信頼できない入力を処理しているシステムは、修正版への更新を優先して確認してください。
Affected packages
| Package | Affected → 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 |
2.0.2.1 1.1.10 1.0.11 2.0.3 |
Original description The description as published by the source.
TikaDocumentReader in Spring AI uses Apache Tika to extract text from documents. Its default configuration disables
Tika's built-in content-size limit, so the extracted text of a parsed document is buffered in memory with no absolute bound.
Apache Tika still aborts a parse when the extracted text is disproportionate to the size of the input, which rejects
highly compressed inputs such as archive bombs, but that guard is relative to the input and places no ceiling on the
total amount of text extracted. An application that uses TikaDocumentReader to process documents from an untrusted
source (e.g., user-uploaded files or attacker-supplied URLs) may therefore be induced to allocate an excessive amount
of memory while parsing a sufficiently large document, potentially exhausting available JVM heap and causing a denial of service.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- web spring.io
- web nvd.nist.gov
- web nvd.nist.gov
- web github.com