What’s Vulnerable › Vulnerabilities
CVE-2026-40989: Self Routing guard bypassed via function composition
- Severity: medium (CVSS 6.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-06-01 · updated 2026-07-22
- Weakness: CWE-674
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 products
- Spring Cloud Function: from 3.2.0 before 3.2.16; from 4.1.0 before 4.1.10; from 4.2.0 before 4.2.6; from 4.3.0 before 4.3.3; from 5.0.0 before 5.0.2 — fixed in 3.2.16, 4.1.10, 4.2.6, 4.3.3, 5.0.2
- Spring Cloud Function: from 3.2.0 before 3.2.16; from 4.1.0 before 4.1.10; from 4.2.0 before 4.2.6; from 4.3.0 before 4.3.3; from 5.0.0 before 5.0.2 — fixed in 3.2.16, 4.1.10, 4.2.6, 4.3.3, 5.0.2
How to fix
Upgrade to a fixed version: Spring Cloud Function 3.2.16, 4.1.10, 4.2.6, 4.3.3; Spring Cloud Function 3.2.16, 4.1.10, 4.2.6, 4.3.3. Check the vendor advisory for mitigations.
References
Get alerted when CVE-2026-40989 or the next vulnerability affects your stack