CVE-2026-40989
MediumCVSS 5.7Exploitation Probability (EPSS)
Low risk12th percentile - higher than 12% of all known CVEs
Summary
Vulnerability in Spring Cloud Function allows an OOM (Out of Memory) error through infinite recursion in the routing layer during request handling. It affects multiple versions of the library.
Risk Assessment
An attacker can remotely cause memory exhaustion, leading to denial of service (DoS) and potential application disruption.
Recommendation
Immediately upgrade Spring Cloud Function to version 3.2.16, 4.1.10, 4.2.6, 4.3.3, or 5.0.2 depending on the branch used.
Other vulnerabilities in Spring Cloud Function
See all- CVE-2026-59301Low
In Spring Cloud Function Azure, there is a potential for logging sensitive data, which may lead to leakage of confidential information into logs.
- CVE-2026-59300Low
In Spring Cloud Function AWS, there is a potential for logging sensitive data, which may lead to leakage of confidential information into logs.
- CVE-2026-59299Low
In Spring Cloud Function, composition lookup can potentially poison the base function, which may lead to unauthorized code execution or manipulation of function behavior.
- CVE-2026-59298Low
In Spring Cloud Function, there is a potential for improper filtering of HTTP headers, which may lead to header injection or other header-related attacks.
- CVE-2026-59297Low
The implementation of isSecure() in ServerlessHttpServletRequest does not verify the actual scheme, which may lead to incorrect determination of connection security.
- CVE-2026-59291Low
Potential arbitrary file read and SSRF vulnerability in Spring Cloud Function. Affects versions 5.0.0-5.0.3, 4.3.0-4.3.4, and 4.2.0-4.2.7.
- CVE-2026-40990Medium
Vulnerability in Spring Cloud Function allows an OOM (Out of Memory) error by attempting to add an infinite number of functions to the Function Registry. It affects multiple versions of the library.
Original NVD description (English source)
Under infinite recursion in the routing layer, request-handling can cause OOM error. Affected Spring Products and Versions: Spring Cloud Function 3.2.x: versions prior to 3.2.16 Spring Cloud Function 4.1.x: versions prior to 4.1.10 Spring Cloud Function 4.2.x: versions prior to 4.2.6 Spring Cloud Function 4.3.x: versions prior to 4.3.3 Spring Cloud Function 5.0.x: versions prior to 5.0.2 Older, unsupported versions are also affected.

