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

- Severity: Medium 5.7 (CVSS:3.1, scored by vmware) `CVSS:3.1/AV:P/AC:L/PR:L/UI:R/S:C/C:N/I:L/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 12% of CVEs (2026-12-01)
- Published: 2026-06-01T17:49:14.102Z
- Modified: 2026-07-22T07:10:00.107Z
- Also known as: GHSA-x9c7-5h6g-hq8q
- Weaknesses: CWE-674
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: vmware

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

(As written by CVE List.)

## Affected

- Spring 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
- org.springframework.cloud:spring-cloud-function-context (Maven): from 4.3.0 before 4.3.3; from 5.0.0 before 5.0.2; from 3.2.10 up to 3.2.15; from 4.1.0 up to 4.1.9; from 4.2.0 up to 4.2.5
- vmware 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

## Every score

- vmware: CVSS:3.1 5.7 Medium `CVSS:3.1/AV:P/AC:L/PR:L/UI:R/S:C/C:N/I:L/A:H`
- GitHub: CVSS:3.1 5.7 Medium `CVSS:3.1/AV:P/AC:L/PR:L/UI:R/S:C/C:N/I:L/A:H`
- NVD: 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`

## References

- <https://spring.io/security/cve-2026-40989> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-40989> (advisory)
- <https://github.com/spring-cloud/spring-cloud-function/commit/6bcd55803c5a2ce0adec794fee1e03c2fac36cf9> (web)
- <https://github.com/spring-cloud/spring-cloud-function> (package)

## Sources

- CVE List: [CVE-2026-40989](https://www.cve.org/CVERecord?id=CVE-2026-40989), CVE Terms of Use, modified 2026-06-01
- GitHub Advisory Database: [GHSA-x9c7-5h6g-hq8q](https://github.com/advisories/GHSA-x9c7-5h6g-hq8q), CC-BY-4.0, modified 2026-07-09
- NVD: [CVE-2026-40989](https://nvd.nist.gov/vuln/detail/CVE-2026-40989), Public domain, modified 2026-07-22

---

Page: https://cve.day/CVE-2026-40989 · Whole record: https://cve.day/CVE-2026-40989.json · Rebuilt by cve.day 2026-11-25T22:59:23.476Z
