CVE-2026-40989

Self Routing guard bypassed via function composition

Published Jun 1, 2026 CVSS 3.1 · 5.7 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

This issue involves an infinite recursion in the routing layer of Spring Cloud Function, causing an out‑of‑memory error when handling requests. The vulnerability leads to resource exhaustion and termination of the application, effectively denying service to legitimate users. The weakness corresponds to uncontrolled recursion (CWE‑674).

Affected Systems

The affected products are Spring Cloud Function from the Spring vendor. Versions prior to 3.2.16 in the 3.2.x line, prior to 4.1.10 in the 4.1.x line, prior to 4.2.6 in the 4.2.x line, prior to 4.3.3 in the 4.3.x line, and prior to 5.0.2 in the 5.0.x line are vulnerable; older, unsupported releases are also impacted.

Risk and Exploitability

Based on the description, it is inferred that an attacker with network access can send a crafted request that engages the routing mechanism to trigger the infinite recursion. With the resulting out‑of‑memory crash, the application terminates, denying service to all users of the affected instance. The CVSS score of 5.7 classifies this vulnerability as moderate, and the lack of an EPSS score and its absence from the CISA KEV catalog suggest that large‑scale exploitation is unlikely at present. Nonetheless, the attack can be executed without elevated privileges, highlighting the significance of promptly applying the fix.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Spring Cloud Function to version 3.2.16, 4.1.10, 4.2.6, 4.3.3, or 5.0.2 (or later) to apply the out‑of‑memory safeguard fix.
  • If an upgrade cannot be performed immediately, reconfigure or disable function composition paths that invoke recursive routing to avoid triggering the out‑of‑memory error.
  • Implement memory usage monitoring and configure alerts or automated restarts to quickly recover from any remaining out‑of‑memory incidents, mitigating temporary service disruption.

Generated by OpenCVE AI on June 1, 2026 at 21:25 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-x9c7-5h6g-hq8q Spring Cloud Function Context has Uncontrolled Recursion
References
History
Type Values Removed Values Added
First Time appeared Vmware
Vmware spring Cloud Function
CPEs cpe:2.3:a:vmware:spring_cloud_function:*:*:*:*:*:*:*:*
Vendors & Products Vmware
Vmware spring Cloud Function
Type Values Removed Values Added
First Time appeared Spring
Spring spring Cloud Function
Vendors & Products Spring
Spring spring Cloud Function
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title Self Routing guard bypassed via function composition
Weaknesses CWE-674
References
Metrics cvssV3_1

{'score': 5.7, 'vector': 'CVSS:3.1/AV:P/AC:L/PR:L/UI:R/S:C/C:N/I:L/A:H'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
vmware
Published
Updated
Jun 1, 2026, 7:35 PM
Reserved
Apr 16, 2026, 2:19 AM
Status
Analyzed
Published
Jun 1, 2026, 7:16 PM
Modified
Jul 22, 2026, 7:10 AM