Exploited now
Vulnerability WatchVulnerabilities, exploits & advisories — updated every 15 minutes
Alerts

Home › CVE › Java

CVE-2026-59345 — Spring AI

High · CVSS 7.5 First seen December 02, 2026

One of 10 Spring AI vulnerabilities published together by NVD: our article covers all of them.

JavaAIEmailVulnerabilities

Summary

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.

Description: NIST National Vulnerability Database (public domain)

Severity breakdown

High · 7.5 CVSS 3.1 base score from the CNA (vmware.com)

An attacker without an account can exploit this over the network, without any user action.

Attack from
the network (remotely)
Attack complexity
low (no special conditions)
Login needed
no
User action needed
no
Scope
stays within the vulnerable component
Impact
high on availability, none on confidentiality and integrity

Vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected and fixed versions

ProductAffected versionsFixed in
Spring AI≥ 2.0.0, < 2.0.2.12.0.2.1
≥ 1.1.0, < 1.1.101.1.10
≥ 1.0.0, < 1.0.111.0.11
≥ 2.0.0, < 2.0.32.0.3

From the vendor's CVE record; confirm with the vendor advisory before relying on a version number.

References by type

Other references

Details from NVD (public domain).

Affected

  • Spring AI

What to do

  • Check whether you run an affected product or version and apply the vendor's update or mitigation.
  • Follow the vendor advisory and the references below for fixed versions and workarounds.

Frequently asked questions

What is CVE-2026-59345?

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.

How severe is CVE-2026-59345?

CVE-2026-59345 has a CVSS 3.1 base score of 7.5 (high), from the CNA (vmware.com). An attacker without an account can exploit this over the network, without any user action.

Is CVE-2026-59345 being exploited?

Not as far as is known: CVE-2026-59345 is not in CISA's Known Exploited Vulnerabilities catalog as of December 2, 2026.

Which versions are affected by CVE-2026-59345?

Spring AI ≥ 2.0.0, < 2.0.2.1 (fixed in 2.0.2.1); Spring AI ≥ 1.1.0, < 1.1.10 (fixed in 1.1.10); Spring AI ≥ 1.0.0, < 1.0.11 (fixed in 1.0.11); Spring AI ≥ 2.0.0, < 2.0.3 (fixed in 2.0.3).

How do I fix CVE-2026-59345?

Update to a fixed release: Spring AI 2.0.2.1; Spring AI 1.1.10; Spring AI 1.0.11.

Timeline & sources

References

Related vulnerabilities & news