Allocation of Resources Without Limits or Throttling Affecting org.springframework.cloud:spring-cloud-function-context package, versions [,4.3.3)[5.0.0-M1, 5.0.2)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Allocation of Resources Without Limits or Throttling vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-ORGSPRINGFRAMEWORKCLOUD-16624645
  • published10 May 2026
  • disclosed8 May 2026
  • creditUnknown

Introduced: 8 May 2026

NewCVE-2026-40989  (opens in a new tab)
CWE-770  (opens in a new tab)

How to fix?

Upgrade org.springframework.cloud:spring-cloud-function-context to version 4.3.3, 5.0.2 or higher.

Overview

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling through the SimpleFunctionRegistry composition. An attacker can exhaust memory or trigger unbounded recursive function composition by supplying crafted function definitions that repeatedly compose the same functions through the catalog lookup path. This can grow the registry’s internal wrapper state without limit and drive the application into excessive memory use, degraded performance, or a crash.

Note: Fixes for earlier branches including 4.2.x, and 3.2.x are available under enterprise support.

CVSS Base Scores

version 4.0
version 3.1