Skip to content
HighVulnerability

CVE-2026-59345: ExtractedTextFormatter denial of service when processing untrusted document text

Identifier
CVE-2026-59345
Published
Record updated
View JSON

Summary

ExtractedTextFormatter, used when processing untrusted text extracted from documents, is vulnerable to denial of service. The trimAdjacentBlankLines() and alignToLeft() methods collapse runs of blank lines with a regular expression containing a quantified group, and Java's backtracking regex engine recurses once per repetition, so a crafted document can exhaust the calling thread's stack and cause an uncaught StackOverflowError. Repeated submissions against a bounded worker pool can degrade or deny service to all users, though each crash is confined to its thread.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.