GitHub Advisoryadvisory · Maven

GHSA-26gg-9gv2-v27j Spring AI Vulnerable to OOM by attacker-controlled PDF

MEDIUM Published 2026-04-28 Modified 2026-05-06 Official page ↗
Aliases
CVE-2026-40980
Ecosystem
Maven
Packages
org.springframework.ai:spring-ai-pdf-document-reader
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weaknesses
CWE-400
Reviewed
2026-05-06

Affected packages

• Maven org.springframework.ai:spring-ai-pdf-document-reader: >= 1.0.0, < 1.0.6 → fixed in 1.0.6 • Maven org.springframework.ai:spring-ai-pdf-document-reader: >= 1.1.0, < 1.1.5 → fixed in 1.1.5

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)

Related

Alias · CVE (1)

  • CVE-2026-40980 In Spring AI, a malicious PDF file can be crafted that triggers the allocation of unreasonable amounts of memory when handled by… vulnerability

Weakness · CWE (1)

  • CWE-400 Uncontrolled Resource Consumption weakness

References