Spring Cloud Gateway JsonToGrpc leaks one channel per request
Spring Cloud Gateway routes that use the JsonToGrpc filter can turn ordinary HTTP traffic into a slow resource leak. In CVE-2026-59425, each matching request creates a new Netty-backed gRPC ManagedChannel. The filter does not reuse or close that channel after the request completes. An unauthenticated client that can reach the route can therefore leave sockets and channel objects open until the gateway runs out of usable resources.
The condition is narrower than a general gateway outage, but the prerequisite is easy to check: a route must use JsonToGrpc. The advisory lists affected branches from 5.0.0 through 5.0.4, 4.3.0 through 4.3.6, 4.2.0 through 4.2.10, and 3.1.4 through 3.1.14. Fixed versions include 5.0.5 in open source, while several older lines received Enterprise-only fixes. Teams that skipped a route review because the gateway version looked current can still be affected if their build came from an older support line.
The attack does not require credentials or malformed packets. Repeated valid requests are enough to increase retained channel state. That makes a simple request-rate alert weak evidence by itself, because the resource curve depends on traffic volume, route popularity and cleanup behavior elsewhere in the stack. Useful signals include active Netty channel counts, open file descriptors, ephemeral port consumption, heap growth tied to channel objects, and latency rises that begin after sustained traffic to a gRPC-backed route.
Remediation should start with the vendor-fixed gateway build. After upgrading, verify that the route still works and that channel counts return to a stable baseline after a test burst. Disable unused JsonToGrpc routes during the change window if the gateway cannot be patched immediately, and place rate limits in front of routes that untrusted users can call. Those controls reduce exposure but do not correct the resource lifecycle bug.
Teams should also review configuration ownership. A running gateway may expose only a subset of route definitions, so an application inventory based on source repositories can miss a route added by a central operations team. Compare the active route configuration with the deployed build, then record which routes accept public traffic. That step identifies the systems where this CVE is operationally relevant instead of producing a long list of gateway installations with no affected filter.
References
- Spring Security Advisory, CVE-2026-59425: https://spring.io/security/cve-2026-59425/
Top comments (0)