Streaming request body limit enforced only after an 8 MB read in elixir-grpc grpc_server
- State
- Published
- Severity
- 8.2 High
- Published
- Nov 13, 2026
- Updated
- Nov 19, 2026
- Reserved
- Nov 13, 2026
Description
Allocation of Resources Without Limits or Throttling vulnerability in elixir-grpc grpc_server allows unauthenticated attackers to exhaust server memory via client-streaming or bidirectional-streaming requests.
The streaming read clause of GRPC.Server.Adapters.Cowboy.Handler.info/3 (grpc_server/lib/grpc/server/adapters/cowboy/handler.ex) asks Cowboy for up to 8,000,000 bytes per read and compares the running total with max_body_size only after the read returns. The gRPC length prefix of a message is not checked before the message is buffered. Each stream can therefore buffer up to one full read beyond the configured limit before it is refused, and many concurrent streams exhaust node memory. Releases before 1.0.6 apply no limit to streaming requests at all.
This issue affects grpc_server: from 1.0.0 before 1.1.0.
| Product | Versions |
|---|---|
| grpc_server elixir-grpc | 1.0.0 to before 1.1.0 Affected |
| grpc_server elixir-grpc | 49e18c3ec6bb9afe2f712caad3dbab5c56a68a00 to before b1e771d558941b1ed4b6de8b39f6a5375543db01 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 8.2 High | EEF |
Weaknesses
- CWE-770 Allocation of Resources Without Limits or Throttling
References
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.