CVE-2026-40990: Spring Cloud Function Context: Uncontrolled Recursion is possible while attempting to add infinite amount of functions to Function Registry
OOM error is possible while attempting to add infinite amount of functions to Function Registry. 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,…
Published Jun 1, 2026 · Updated Jul 9, 2026
Affected packages
org.springframework.cloud:spring-cloud-function-context
- Ecosystem
- Maven
- Affected
- >= 4.3.0, < 4.3.3
- Fixed in
- 4.3.3
- Check
mvn dependency:tree -Dincludes=org.springframework.cloud:spring-cloud-function-context
org.springframework.cloud:spring-cloud-function-context
- Ecosystem
- Maven
- Affected
- >= 5.0.0, < 5.0.2
- Fixed in
- 5.0.2
- Check
mvn dependency:tree -Dincludes=org.springframework.cloud:spring-cloud-function-context
org.springframework.cloud:spring-cloud-function-context
- Ecosystem
- Maven
- Affected
- >= 3.2.10, <= 3.2.15
- Fixed in
- No patched version yet
- Check
mvn dependency:tree -Dincludes=org.springframework.cloud:spring-cloud-function-context
org.springframework.cloud:spring-cloud-function-context
- Ecosystem
- Maven
- Affected
- >= 4.1.0, <= 4.1.9
- Fixed in
- No patched version yet
- Check
mvn dependency:tree -Dincludes=org.springframework.cloud:spring-cloud-function-context
org.springframework.cloud:spring-cloud-function-context
- Ecosystem
- Maven
- Affected
- >= 4.2.0, <= 4.2.5
- Fixed in
- No patched version yet
- Check
mvn dependency:tree -Dincludes=org.springframework.cloud:spring-cloud-function-context
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
OOM error is possible while attempting to add infinite amount of functions to Function Registry.
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.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
