## cve-2026-59345 - HIGH - Denial of Service via regex-recursion

- 種別: advisory
- 重大度: high
- 関連技術: spring, java
- CVE: CVE-2026-59345
- 公開日時: 2026-11-19T00:00:00.000Z
- 情報源: Spring Security Advisories (https://spring.io/security/cve-2026-59345)
- パーマリンク: https://vulnpulse.app/items/spring-security-9070b6ca04c3

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 us…