Vulnerability · Published Jun 1, 2026 · Assigned by vmware

CVE-2026-40989Self Routing guard bypassed via function composition

Medium 5.7

In plain English

A medium-severity security flaw in Spring Cloud Function from Spring. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 11% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.7Medium
Exploit odds (30 days)0.2%top 88.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Mavenorg.springframework.cloud:spring-cloud-function-context4.3.3GHSA-x9c7-5h6g-hq8q
Mavenorg.springframework.cloud:spring-cloud-function-context5.0.2GHSA-x9c7-5h6g-hq8q
Mavenorg.springframework.cloud:spring-cloud-function-contextno fix listedGHSA-x9c7-5h6g-hq8q
Mavenorg.springframework.cloud:spring-cloud-function-contextno fix listedGHSA-x9c7-5h6g-hq8q
Mavenorg.springframework.cloud:spring-cloud-function-contextno fix listedGHSA-x9c7-5h6g-hq8q

Affected products (as reported)

VendorProductVersions
Spring Spring Cloud Function 3.2.0 – before 3.2.164.1.0 – before 4.1.104.2.0 – before 4.2.64.3.0 – before 4.3.35.0.0 – before 5.0.2

Weakness: CWE-674 · Vector: CVSS:3.1/AV:P/AC:L/PR:L/UI:R/S:C/C:N/I:L/A:H

References