MODERATE 6.5

CVE-2026-40980

Spring AI Vulnerable to OOM by attacker-controlled PDF

Description

In Spring AI, a malicious PDF file can be crafted that triggers the allocation of unreasonable amounts of memory when handled by ForkPDFLayoutTextStripper.

Affected versions: Spring AI: 1.0.0 - 1.0.5 (fixed in 1.0.6), 1.1.0 - 1.1.4 (fixed in 1.1.5)

Affected Maven artifacts (1)

ArtifactAffected versionsFixed in
org.springframework.ai » spring-ai-pdf-document-reader
>= 1.0.0, < 1.0.6>= 1.1.0, < 1.1.5
1.0.6, 1.1.5

Blast radius

1affected artifacts
11affected versions
22dependent artifacts (est.)
164dependent versions

59% of the dependent artifacts (13) still pull an affected version in their latest release.

DepthDependent versions
Direct
61
2 hops
103

Most used dependents

Computed from the dependency graph of build 20261125.2201 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.

References

Advisorynvd.nist.gov
Packagegithub.com
Webspring.io