Skip to main content

Spring Cloud Function CVE-2026-40989

| EUVDEUVD-2026-33733 MEDIUM
Uncontrolled Recursion (CWE-674)
2026-06-01 vmware GHSA-x9c7-5h6g-hq8q
5.7
CVSS 3.1 · NVD
Share

Severity by source

NVD PRIMARY
5.7 MEDIUM
AV:P/AC:L/PR:L/UI:R/S:C/C:N/I:L/A:H

Primary rating from NVD · only source for this CVE.

CVSS VectorNVD

CVSS:3.1/AV:P/AC:L/PR:L/UI:R/S:C/C:N/I:L/A:H
Attack Vector
Physical
Attack Complexity
Low
Privileges Required
Low
User Interaction
Required
Scope
Changed
Confidentiality
None
Integrity
Low
Availability
High

Lifecycle Timeline

2
Patch available
Jun 01, 2026 - 20:02 EUVD
Analysis Generated
Jun 01, 2026 - 19:35 vuln.today

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 154 maven packages depend on org.springframework.cloud:spring-cloud-function-context (16 direct, 138 indirect)

Ecosystem-wide dependent count for version 4.3.0.

DescriptionCVE.org

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.

AnalysisAI

Uncontrolled recursion in Spring Cloud Function's routing layer triggers an Out-of-Memory (OOM) condition, resulting in a denial of service across all active release trains (3.2.x through 5.0.x). The vulnerability is rooted in CWE-674 (Uncontrolled Recursion), where the routing layer lacks depth limits or cycle detection, allowing recursive request-handling to exhaust JVM heap space. No public exploit code or CISA KEV listing has been identified at time of analysis; however, the CVSS physical attack vector (AV:P) appears inconsistent with a routing-layer vulnerability and warrants verification against the Spring/VMware advisory.

Technical ContextAI

Spring Cloud Function is a Java-based framework (CPE: cpe:2.3:a:spring:spring_cloud_function:*:*:*:*:*:*:*:*) that abstracts function deployment across cloud runtimes including AWS Lambda, Azure Functions, and Apache OpenWhisk. The routing layer dispatches incoming requests to registered functions. CWE-674 (Uncontrolled Recursion) identifies the root cause: the router can enter an unbounded recursive call chain - either due to circular function references, self-referential routing rules, or missing base-case guards - causing the JVM call stack and heap to grow until an OutOfMemoryError is thrown and the process terminates. The CVSS scope is Changed (S:C), indicating the OOM condition can affect resources beyond the vulnerable Spring application component itself, consistent with a JVM-level crash impacting co-hosted workloads. The 'Information Disclosure' tag in the intelligence metadata conflicts with the CVSS C:N (no confidentiality impact); this tag may reflect secondary behavior such as stack traces leaking internal paths before the crash.

RemediationAI

The primary fix is to upgrade Spring Cloud Function to a patched release matching your current branch: 3.2.16, 4.1.10, 4.2.6, 4.3.3, or 5.0.2. Consult the official advisory at https://spring.io/security/cve-2026-40989 for release artifact details. For teams running unsupported versions (e.g., 3.x branches prior to 3.2.x), the HeroDevs advisory at https://www.herodevs.com/vulnerability-directory/cve-2026-40989 may provide extended support options. If an immediate upgrade is not feasible, consider restricting routing-layer input sources to trusted, validated callers only - untrusted or externally-supplied routing inputs represent the primary trigger surface. Enforcing JVM heap limits and enabling OOM crash restarts via orchestration tooling (Kubernetes liveness probes, systemd restart policies) reduces availability impact duration but does not eliminate the vulnerability. Note that restarting on OOM may create a repeated-crash loop if the triggering input is replayed.

More in Java

View all
CVE-2012-4681 CRITICAL POC
9.8 Aug 28

Oracle Java SE 7 Update 6 and earlier contains multiple sandbox bypass vulnerabilities via the ClassFinder and forName m

CVE-2015-7450 CRITICAL POC
9.8 Jan 02

Remote code execution in IBM Sterling B2B Integrator, Sterling Integrator, and Tivoli Common Reporting allows unauthenti

CVE-2013-2465 CRITICAL POC
9.8 Jun 18

Java Runtime Environment sandbox bypass via incorrect image channel verification in 2D component allows remote unauthent

CVE-2011-3544 CRITICAL POC
9.8 Oct 19

Oracle Java SE JDK/JRE 7 and 6 Update 27 and earlier allows remote code execution with complete system compromise throug

CVE-2010-1871 HIGH POC
8.8 Aug 05

JBoss Seam 2 in Red Hat JBoss EAP 4.3.0 fails to sanitize JBoss Expression Language inputs, allowing remote attackers to

CVE-2012-1723 CRITICAL POC
9.8 Jun 16

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 update 4 and earlier, 6 up

CVE-2013-0422 CRITICAL POC
9.8 Jan 10

Multiple vulnerabilities in Oracle Java 7 before Update 11 allow remote attackers to execute arbitrary code by (1) using

CVE-2012-0507 CRITICAL POC
9.8 Jun 07

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 2 and earlier, 6 Up

CVE-2015-4852 CRITICAL POC
9.8 Nov 18

The WLS Security component in Oracle WebLogic Server 10.3.6.0, 12.1.2.0, 12.1.3.0, and 12.2.1.0 allows remote attackers

CVE-2012-5076 CRITICAL POC
9.8 Oct 16

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 7 and earlier allow

CVE-2017-3066 CRITICAL POC
9.8 Apr 27

Remote unauthenticated attackers can execute arbitrary code on Adobe ColdFusion servers through Java deserialization fla

CVE-2012-0391 CRITICAL POC
9.8 Jan 08

The ExceptionDelegator component in Apache Struts before 2.2.3.1 interprets parameter values as OGNL expressions during

Share

CVE-2026-40989 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy