CVE-2026-40989
Infinite Recursion Leads to OOM in Spring Cloud Function
Publication date: 2026-06-01
Last updated on: 2026-06-01
Assigner: VMware
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| vmware | spring_cloud_function | to 3.2.16 (exc) |
| vmware | spring_cloud_function | to 4.1.10 (exc) |
| vmware | spring_cloud_function | to 4.2.6 (exc) |
| vmware | spring_cloud_function | to 4.3.3 (exc) |
| vmware | spring_cloud_function | to 5.0.2 (exc) |
Helpful Resources
Exploitability
| 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 Powered Q&A
Can you explain this vulnerability to me?
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.
How can this vulnerability impact me? :
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.
What immediate steps should I take to mitigate this vulnerability?
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.
How does this vulnerability affect compliance with common standards and regulations (like GDPR, HIPAA)?:
The provided information does not specify any direct impact of this vulnerability on compliance with common standards and regulations such as GDPR or HIPAA.