Uncontrolled Recursion Affecting org.springframework.ai:spring-ai-pdf-document-reader package, versions [1.0.0,2.0.1)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.26% (18th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JAVA-ORGSPRINGFRAMEWORKAI-19267448
  • published26 Aug 2026
  • disclosed20 Aug 2026
  • creditUnknown

Introduced: 20 Aug 2026

NewCVE-2026-47851  (opens in a new tab)
CWE-674  (opens in a new tab)

How to fix?

Upgrade org.springframework.ai:spring-ai-pdf-document-reader to version 2.0.1 or higher.

Overview

org.springframework.ai:spring-ai-pdf-document-reader is a Spring AI PDF document reader

Affected versions of this package are vulnerable to Uncontrolled Recursion in the ingestion process. An attacker can cause a denial of service by submitting a PDF with a deeply nested or cyclic table of contents, leading to unbounded recursion and a StackOverflowError.

CVSS Base Scores

version 4.0
version 3.1