cve.bz

CVE-2026-40989 vmware spring cloud function: Uncontrolled Recursion

6.5 mediumEPSS 0.2%Fix available

Medium (6.5) in vmware spring cloud function. EPSS 0.2% estimated probability of exploitation activity in the next 30 days. Fixed in org.springframework.cloud:spring-cloud-function-context 4.3.3, 5.0.2.

On this page
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.

Severity

CVSS 3.1

6.5 medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
EPSS
0.2% (unchanged from 0.2% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 11th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-06-01. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-674 Uncontrolled Recursion
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-40989 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-40989?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-40989?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-40989 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Spring Cloud Functionfrom 3.2.0 before 3.2.16
Spring Cloud Functionfrom 4.1.0 before 4.1.10
Spring Cloud Functionfrom 4.2.0 before 4.2.6
Spring Cloud Functionfrom 4.3.0 before 4.3.3
Spring Cloud Functionfrom 5.0.0 before 5.0.2

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-x9c7-5h6g-hq8qMavenorg.springframework.cloud:spring-cloud-function-context>=4.3.0 <4.3.34.3.3
GHSA-x9c7-5h6g-hq8qMavenorg.springframework.cloud:spring-cloud-function-context>=5.0.0 <5.0.25.0.2
GHSA-x9c7-5h6g-hq8qMavenorg.springframework.cloud:spring-cloud-function-context>=3.2.10 <=3.2.15no fix published
GHSA-x9c7-5h6g-hq8qMavenorg.springframework.cloud:spring-cloud-function-context>=4.1.0 <=4.1.9no fix published
GHSA-x9c7-5h6g-hq8qMavenorg.springframework.cloud:spring-cloud-function-context>=4.2.0 <=4.2.5no fix published

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Red Hat has evaluated this vulnerability as having a Moderate impact because exploitation is restricted to denial of service through memory exhaustion, with no compromise of system confidentiality or integrity. In Red Hat Enterprise Application Platform (JBoss EAP XP) environments utilizing Spring Cloud Function, incoming requests can exploit function composition to trigger uncontrolled recursive routing. While an out-of-memory condition will crash or freeze the executing runtime, the vulnerability cannot be leveraged to gain unauthorized privileges or execute arbitrary commands.

ProductPackageStateAdvisory
Red Hat JBoss Enterprise Application Platform Expansion Packspring-cloud-function-contextFix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-40989.

Attack patterns (CAPEC)

  • CAPEC-230 Serialized Data with Nested Payloads Likelihood: Medium · Severity: High
  • CAPEC-231 Oversized Serialized Data Payloads Likelihood: Medium · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON