CVE-2026-40989
Analyzed Analyzed - Analysis Complete
Infinite Recursion Leads to OOM in Spring Cloud Function

Publication date: 2026-06-01

Last updated on: 2026-06-05

Assigner: VMware

Description
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.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-06-01
Last Modified
2026-06-05
Generated
2026-06-22
AI Q&A
2026-06-01
EPSS Evaluated
2026-06-20
NVD
EUVD
Affected Vendors & Products
Showing 5 associated CPEs
Vendor Product Version / Range
vmware spring_cloud_function From 3.2.0 (inc) to 3.2.16 (exc)
vmware spring_cloud_function From 4.1.0 (inc) to 4.1.10 (exc)
vmware spring_cloud_function From 4.2.0 (inc) to 4.2.6 (exc)
vmware spring_cloud_function From 5.0.0 (inc) to 5.0.2 (exc)
vmware spring_cloud_function From 4.3.0 (inc) to 4.3.3 (exc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-674 The product does not properly control the amount of recursion that takes place, consuming excessive resources, such as allocated memory or the program stack.
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Executive Summary

CVE-2026-40989 is a security vulnerability in multiple versions of Spring Cloud Function. It occurs due to infinite recursion in the routing layer during request handling, which can cause an out-of-memory (OOM) error.

This means that when certain functions are composed or routed incorrectly, the system can enter a loop that consumes all available memory, leading to a crash or denial of service.

Impact Analysis

The vulnerability can cause your application to run out of memory and crash due to infinite recursion in the routing layer. This can lead to denial of service, making your services unavailable to users.

If exploited, it may disrupt normal operations and degrade system reliability, especially in environments where Spring Cloud Function is used for handling requests.

Mitigation Strategies

To mitigate the vulnerability CVE-2026-40989, affected users should upgrade to the fixed versions of Spring Cloud Function as specified:

  • For versions 3.2.x, 4.1.x, and 4.2.x, upgrade to the fixed versions available through Enterprise Support.
  • For versions 4.3.x and 5.0.x, upgrade to the fixed open-source software (OSS) versions.

If upgrading is not possible immediately, users should prevent functions from being composed with themselves to avoid triggering the infinite recursion and subsequent out-of-memory error.

Compliance Impact

The provided information does not specify any direct impact of this vulnerability on compliance with common standards and regulations such as GDPR or HIPAA.

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-40989. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart