ADVISORIES

GitHub Advisory Database

GHSA-x4h3-g2x4-8gqv

Spring Cloud Function Context: Uncontrolled Recursion is possible while attempting to add infinite amount of functions to Function Registry

Moderate CVE-2026-40990

Details

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.

Affected packages

EcosystemPackageAffected versions
Mavenorg.springframework.cloud:spring-cloud-function-context
From 4.3.0 before 4.3.3 (fixed in 4.3.3)
Mavenorg.springframework.cloud:spring-cloud-function-context
From 5.0.0 before 5.0.2 (fixed in 5.0.2)
Mavenorg.springframework.cloud:spring-cloud-function-context
From 3.2.10 up to and including 3.2.15
Mavenorg.springframework.cloud:spring-cloud-function-context
From 4.1.0 up to and including 4.1.9
Mavenorg.springframework.cloud:spring-cloud-function-context
From 4.2.0 up to and including 4.2.5

References