CVE-2026-40990

Unbounded cache for function definitions

Published Jun 1, 2026 CVSS 3.1 · 5.7 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

This vulnerability arises from an unbounded cache that allows an attacker to add an unlimited number of functions to the Spring Cloud Function registry, eventually causing an out‑of‑memory error. The weakness aligns with CWE-770, resulting in a crash of the application and interruption of service availability.

Affected Systems

The flaw impacts Spring Cloud Function across multiple major releases: 3.2.x up to 3.2.15, 4.1.x up to 4.1.9, 4.2.x up to 4.2.5, 4.3.x up to 4.3.2, and 5.0.x up to 5.0.1, with older unsupported versions also affected.

Risk and Exploitability

The base score of 5.7 on CVSS reflects a moderate severity for Denial of Service. EPSS is not available and the issue is not yet listed in CISA KEV. The attack vector is inferred to be application‑level, requiring the ability to register functions—likely through authenticated API access or misconfigured function registry exposure. Once the unbounded registry is populated, the application will become unresponsive due to memory exhaustion.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Spring Cloud Function to a patched release (3.2.16, 4.1.10, 4.2.6, 4.3.3, or 5.0.2).
  • If an upgrade is not immediately feasible, configure a hard limit on the number of functions that can be registered in the Function Registry to prevent out‑of‑memory conditions.
  • Implement application monitoring and alerts for memory usage spikes to detect and respond to potential OOM conditions early.

Generated by OpenCVE AI on June 1, 2026 at 20:23 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-x4h3-g2x4-8gqv Spring Cloud Function Context: Uncontrolled Recursion is possible while attempting to add infinite amount of functions to Function Registry
References
History
Type Values Removed Values Added
First Time appeared Vmware
Vmware spring Cloud Function
CPEs cpe:2.3:a:vmware:spring_cloud_function:*:*:*:*:*:*:*:*
Vendors & Products Vmware
Vmware spring Cloud Function
Type Values Removed Values Added
First Time appeared Spring
Spring spring Cloud Function
Vendors & Products Spring
Spring spring Cloud Function
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title Unbounded cache for function definitions
Weaknesses CWE-770
References
Metrics cvssV3_1

{'score': 5.7, 'vector': 'CVSS:3.1/AV:P/AC:L/PR:L/UI:R/S:C/C:N/I:L/A:H'}

Weaknesses
  • CWE-770

    Allocation of Resources Without Limits or Throttling

Sources

Status
PUBLISHED
Assigner
vmware
Published
Updated
Jun 1, 2026, 7:35 PM
Reserved
Apr 16, 2026, 2:19 AM
Status
Analyzed
Published
Jun 1, 2026, 7:16 PM
Modified
Jul 22, 2026, 7:10 AM