# CVE-2026-59345: Denial of Service via regex-recursion

- Priority: **Prioritise**
- Reason: Severe, CVSS 7.5 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 0% (FIRST, 04-12-2026)
- Next step: Check applicability: affected before 1.0.11, 1.1.10, 2.0.2.1, 2.0.3 (CNA); fix release not confirmed
- Status: published
- Published: 2026-12-02 · Modified: 2026-12-02
- Record: https://cvemate.com/vulnerability/CVE-2026-59345 · JSON: https://cvemate.com/vulnerability/CVE-2026-59345/json

## Description

```text
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.
```

## Signals

- CVSS: 7.5 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.366%, percentile 32.513%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- spring spring ai: ≥ 2.0.0, \< 2.0.2.1 \| ≥ 1.1.0, \< 1.1.10 \| ≥ 1.0.0, \< 1.0.11 \| ≥ 2.0.0, \< 2.0.3

## References

- <https://spring.io/security/cve-2026-59345>
- <https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator?vector=AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H&version=3.1>

---

Data as of 2026-12-05T04:05:05.199Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
