Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.springframework.ai/spring-ai-pdf-document-reader
  4. ›
  5. CVE-2026-40980

CVE-2026-40980: Spring AI Vulnerable to OOM by attacker-controlled PDF

April 28, 2026 (updated May 6, 2026)

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)

References

  • github.com/advisories/GHSA-26gg-9gv2-v27j
  • github.com/spring-projects/spring-ai
  • nvd.nist.gov/vuln/detail/CVE-2026-40980
  • spring.io/security/cve-2026-40980

Code Behaviors & Features

Detect and mitigate CVE-2026-40980 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 1.0.0 before 1.0.6, all versions starting from 1.1.0 before 1.1.5

Fixed versions

  • 1.0.6
  • 1.1.5

Solution

Upgrade to versions 1.0.6, 1.1.5 or above.

Impact 6.5 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-400: Uncontrolled Resource Consumption

Source file

maven/org.springframework.ai/spring-ai-pdf-document-reader/CVE-2026-40980.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 12:18:48 +0000.