CVE-2026-40989: Self Routing guard bypassed via function composition

MODERATE | MAY 08, 2026 | CVE-2026-40989

Description

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

Affected Spring Products and Versions

Spring Cloud Function

  • 3.2.x
  • 4.2.x
  • 4.3.x
  • 5.0.x
  • Older, unsupported versions are also affected

Mitigation

Users of affected versions should upgrade to the corresponding fixed version.

Affected version(s) Fix version Availability
3.2.x 3.2.16 Enterprise Support Only
4.2.x 4.2.6 Enterprise Support Only
4.3.x 4.3.3 OSS
5.0.x 5.0.2 OSS

If you are not able to upgrade, ensure functions can not be composed with itself

References

Get ahead

VMware offers training and certification to turbo-charge your progress.

Learn more

Get support

Tanzu Spring offers support and binaries for OpenJDK™, Spring, and Apache Tomcat® in one simple subscription.

Learn more

Upcoming events

Check out all the upcoming events in the Spring community.

View all