Uncontrolled Memory Allocation in Spring AI - CVE-2026-40980

 

Uncontrolled Memory Allocation in Spring AI - CVE-2026-40980

Published: April 27, 2026


Vulnerability identifier: #VU128241
CSH Severity: Low
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U/U:Clear
CVE-ID: CVE-2026-40980
CWE-ID: CWE-789
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: Pivotal
Affected software:
Spring AI

Detailed vulnerability description

The vulnerability allows a remote user to cause a denial of service.

The vulnerability exists due to uncontrolled memory allocation in ForkPDFLayoutTextStripper when processing a crafted PDF file. A remote user can supply a malicious PDF file to cause a denial of service.

Only applications that use ForkPDFLayoutTextStripper and pass user-supplied input to DocumentReaders are vulnerable.


How to mitigate CVE-2026-40980

Install security update from vendor's website.

Sources