# GHSA-VX6Q-CR5Q-945G: Unbounded request body accumulation on streaming RPCs causes memory exhaustion in grpc\_server

- Database: GitHub
- Severity: CVSS 8.2 (High)
- Published: 2026-11-06
- Modified: 2026-11-06

## Tracked as

- [CVE-2026-71397](https://cve.now/CVE-2026-71397.md): gRPC Server memory exhaustion in streaming RPC handling

## Affected versions

- grpc\_server (Hex): from 1.0.0, fixed in 1.0.6

## Description

### Summary

`grpc_server` does not enforce its configured `max_body_size` on request-streaming or bidirectional-streaming gRPC calls. An unauthenticated remote client can open any streaming RPC method and send an unbounded amount of data across many small HTTP/2 DATA frames, causing the server to buffer all of it in memory and eventually exhaust the BEAM's memory and crash the node.

### Details

`GRPC.Server.Adapters.Cowboy.Handler` enforces `max_body_size` on single-request/single-response calls but not on the streaming read path, which buffers every inbound chunk with no upper bound. The commit that introduced `max_body_size` applied the check only to non-streaming requests, so any service exposing a streaming RPC method inherited an unbounded-buffering path even though non-streaming calls on the same server are protected.

### PoC

1. Start a `grpc` server exposing any request-streaming or bidirectional-streaming RPC (a client-streaming method is sufficient).
2. Open an HTTP/2 connection and send a request to that streaming method.
3. Send the request body across many small HTTP/2 DATA frames without the final `END_STREAM` flag, continuing well past the server's configured `max_body_size`.
4. Observe the server accepts and buffers all of it, memory growing without bound, instead of rejecting the call once the cap is exceeded (as the equivalent non-streaming call does).

### Impact

An unauthenticated attacker can crash a `grpc_server`-based service by exhausting its memory through a single streaming RPC connection, so long as the target exposes at least one streaming RPC method; services with only single-request/single-response calls are not reachable this way.

### References

* Introducing commit: https://github.com/elixir-grpc/grpc/commit/49e18c3ec6bb9afe2f712caad3dbab5c56a68a00
* Patch commit: https://github.com/elixir-grpc/grpc/commit/0b663ca53dbf0f36f7f67ff1d0026f4482a18915

## References

- https://github.com/elixir-grpc/grpc/security/advisories/GHSA-vx6q-cr5q-945g

Page: https://cve.now/GHSA-VX6Q-CR5Q-945G

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
