Spring Cloud Function Context: Uncontrolled Recursion is possible while attempting to add infinite amount of functions to Function RegistryGHSA-x4h3-g2x4-8gqv
MEDIUMGHSA-x4h3-g2x4-8gqv is a medium-severity (CVSS 5.7) CWE-770 vulnerability in org.springframework.cloud:spring-cloud-function-context. A fix is available for org.springframework.cloud:spring-cloud-function-context — see the affected versions and patch details below.
Exploitation Status
No confirmed exploitation observed yet
- CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.
Exploitation and automatability from CISA’s SSVC triage for GHSA-x4h3-g2x4-8gqv.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
GHSA-x4h3-g2x4-8gqv by exploitation likelihood (EPSS) against impact (CVSS). Outside the shaded patch-first corner.
Where this sits among everything scored
Of 389,824 CVEs with a current EPSS score, this one falls in the < 10% band (highlighted). Counts from FIRST.org, log-scaled.
Real-World Exposure
org.springframework.cloud:spring-cloud-function-context☕org.springframework.cloud:spring-cloud-function-context☕org.springframework.cloud:spring-cloud-function-context☕org.springframework.cloud:spring-cloud-function-context☕org.springframework.cloud:spring-cloud-function-contextReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.
Description
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
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | org.springframework.cloud:spring-cloud-function-context | ≥ 4.3.0&&< 4.3.3 | 4.3.3org.springframework.cloud:spring-cloud-function-context:4.3.3 |
| ☕Maven | org.springframework.cloud:spring-cloud-function-context | ≥ 5.0.0&&< 5.0.2 | 5.0.2org.springframework.cloud:spring-cloud-function-context:5.0.2 |
| ☕Maven | org.springframework.cloud:spring-cloud-function-context | ≥ 3.2.10 | No fix |
| ☕Maven | org.springframework.cloud:spring-cloud-function-context | ≥ 4.1.0 | No fix |
| ☕Maven | org.springframework.cloud:spring-cloud-function-context | ≥ 4.2.0 | No fix |
Affected Products
spring cloud functionvmwareDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for org.springframework.cloud:spring-cloud-function-context, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update org.springframework.cloud:spring-cloud-function-context to 4.3.3 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-x4h3-g2x4-8gqv is resolved across your whole dependency graph.
Workarounds
Cap what an attacker can consume: apply request size, rate and timeout limits in front of the affected component, and run it with memory and CPU limits so exhaustion degrades one worker rather than the whole service.
Fixing This On Your OS
If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.
Red Hat's versions of spring-cloud-function shipped as a transitive dependency in EAP XP predate the affected version range and are not impacted by this vulnerability.
No mitigation is required. The shipped versions do not contain the vulnerable code.Source: Red Hat security advisory for GHSA-x4h3-g2x4-8gqv (CC BY 4.0)
Frequently Asked Questions
Is GHSA-x4h3-g2x4-8gqv in your dependencies?
Find it across Maven, including transitive dependencies.