Quick answers
- Is CVE-2026-40989 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2026-40989 being exploited in the wild.
- How severe is CVE-2026-40989?
- Medium severity, with a CVSS score of 5.7, published 1 June 2026.
- Which products and versions are affected?
- org.springframework.cloud:spring-cloud-function-context (Maven) ECOSYSTEM:introduced=4.3.0,fixed=4.3.3; VMware Spring Cloud Function 3.2.x prior to 3.2.16, 4.1.x prior to 4.1.10, 4.2.x prior to 4.2.6, 4.3.x prior to 4.3.3, 5.0.x prior to 5.0.2.
- Is there a fix for CVE-2026-40989?
- Yes. org.springframework.cloud:spring-cloud-function-context (Maven): upgrade to 4.3.3 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2026-40989 attacked?
- It is attacked over the network, in a software library.
- Am I affected by CVE-2026-40989?
- Check whether you run org.springframework.cloud:spring-cloud-function-context (Maven) or VMware Spring Cloud Function at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
- org.springframework.cloud:spring-cloud-function-context (Maven): upgrade to 4.3.3 or later
# set org.springframework.cloud:spring-cloud-function-context to 4.3.3 in your pom.xml or build.gradle
Technical details
A vulnerability classified as Uncontrolled Recursion (CWE-674) exists in the routing layer of Spring Cloud Function. The issue stems from how the FunctionRegistry handles recursive composition and request routing. An authenticated attacker can exploit this by sending specifically crafted requests that trigger infinite recursion, leading to an Out of Memory (OOM) error and a subsequent Denial of Service (DoS). While some advisory sources suggest physical access requirements, the NVD assessment indicates a network-based attack vector is possible with low privileges. Patches have been released across multiple major versions (3.2.16, 4.1.10, 4.2.6, 4.3.3, and 5.0.2).
Affected products
- VMware Spring Cloud Function 3.2.x prior to 3.2.16, 4.1.x prior to 4.1.10, 4.2.x prior to 4.2.6, 4.3.x prior to 4.3.3, 5.0.x prior to 5.0.2
Identifiers
- CVE-2026-40989
- GHSA-x9c7-5h6g-hq8q
Timeline
- 2026-06-01: disclosed
- 2026-06-01: advisory