{"id":"GHSA-x9c7-5h6g-hq8q","summary":"Spring Cloud Function Context has Uncontrolled Recursion","details":"Under infinite recursion in the routing layer, request-handling can cause OOM error.\n\nAffected Spring Products and Versions:\nSpring Cloud Function 3.2.x: versions prior to 3.2.16\nSpring Cloud Function 4.1.x: versions prior to 4.1.10\nSpring Cloud Function 4.2.x: versions prior to 4.2.6\nSpring Cloud Function 4.3.x: versions prior to 4.3.3\nSpring Cloud Function 5.0.x: versions prior to 5.0.2\nOlder, unsupported versions are also affected.","aliases":["CVE-2026-40989"],"modified":"2026-07-09T13:56:44.509439Z","published":"2026-06-01T21:30:42Z","database_specific":{"nvd_published_at":"2026-06-01T19:16:39Z","cwe_ids":["CWE-674"],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2026-07-09T13:38:38Z"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40989"},{"type":"WEB","url":"https://github.com/spring-cloud/spring-cloud-function/commit/6bcd55803c5a2ce0adec794fee1e03c2fac36cf9"},{"type":"PACKAGE","url":"https://github.com/spring-cloud/spring-cloud-function"},{"type":"WEB","url":"https://spring.io/security/cve-2026-40989"}],"affected":[{"package":{"name":"org.springframework.cloud:spring-cloud-function-context","ecosystem":"Maven","purl":"pkg:maven/org.springframework.cloud/spring-cloud-function-context"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.3.0"},{"fixed":"4.3.3"}]}],"versions":["4.3.0","4.3.1","4.3.2"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-x9c7-5h6g-hq8q/GHSA-x9c7-5h6g-hq8q.json"}},{"package":{"name":"org.springframework.cloud:spring-cloud-function-context","ecosystem":"Maven","purl":"pkg:maven/org.springframework.cloud/spring-cloud-function-context"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.0.0"},{"fixed":"5.0.2"}]}],"versions":["5.0.0","5.0.1"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-x9c7-5h6g-hq8q/GHSA-x9c7-5h6g-hq8q.json"}},{"package":{"name":"org.springframework.cloud:spring-cloud-function-context","ecosystem":"Maven","purl":"pkg:maven/org.springframework.cloud/spring-cloud-function-context"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.2.10"},{"last_affected":"3.2.15"}]}],"versions":["3.2.10","3.2.11","3.2.12"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-x9c7-5h6g-hq8q/GHSA-x9c7-5h6g-hq8q.json"}},{"package":{"name":"org.springframework.cloud:spring-cloud-function-context","ecosystem":"Maven","purl":"pkg:maven/org.springframework.cloud/spring-cloud-function-context"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.1.0"},{"last_affected":"4.1.9"}]}],"versions":["4.1.0","4.1.1","4.1.2","4.1.3","4.1.4","4.1.5","4.1.6"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-x9c7-5h6g-hq8q/GHSA-x9c7-5h6g-hq8q.json"}},{"package":{"name":"org.springframework.cloud:spring-cloud-function-context","ecosystem":"Maven","purl":"pkg:maven/org.springframework.cloud/spring-cloud-function-context"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.2.0"},{"last_affected":"4.2.5"}]}],"versions":["4.2.0","4.2.1","4.2.2","4.2.3","4.2.4"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-x9c7-5h6g-hq8q/GHSA-x9c7-5h6g-hq8q.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:P/AC:L/PR:L/UI:R/S:C/C:N/I:L/A:H"}]}