Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.springframework.cloud/spring-cloud-function-context
  4. ›
  5. CVE-2026-40989

CVE-2026-40989: Spring Cloud Function Context has Uncontrolled Recursion

June 1, 2026 (updated July 9, 2026)

Under infinite recursion in the routing layer, request-handling can cause OOM error.

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

  • github.com/advisories/GHSA-x9c7-5h6g-hq8q
  • github.com/spring-cloud/spring-cloud-function/commit/6bcd55803c5a2ce0adec794fee1e03c2fac36cf9
  • nvd.nist.gov/vuln/detail/CVE-2026-40989
  • spring.io/security/cve-2026-40989

Code Behaviors & Features

Detect and mitigate CVE-2026-40989 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 3.2.10 up to 3.2.15, all versions starting from 4.1.0 up to 4.1.9, all versions starting from 4.2.0 up to 4.2.5, all versions starting from 4.3.0 before 4.3.3, all versions starting from 5.0.0 before 5.0.2

Fixed versions

  • 4.3.3
  • 5.0.2

Solution

Upgrade to versions 4.3.3, 5.0.2 or above.

Impact 5.7 MEDIUM

CVSS:3.1/AV:P/AC:L/PR:L/UI:R/S:C/C:N/I:L/A:H

Learn more about CVSS

Weakness

  • CWE-674: Uncontrolled Recursion

Source file

maven/org.springframework.cloud/spring-cloud-function-context/CVE-2026-40989.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Fri, 10 Jul 2026 00:16:53 +0000.