CPU exhaustion via a truncated gRPC message on streaming RPCs in elixir-grpc grpc_server
- State
- Published
- Severity
- 8.2 High
- Published
- Nov 13, 2026
- Updated
- Nov 19, 2026
- Reserved
- Nov 13, 2026
Description
Loop with Unreachable Exit Condition ('Infinite Loop') vulnerability in elixir-grpc grpc_server and grpc allows unauthenticated attackers to occupy a BEAM scheduler indefinitely via a client-streaming or bidirectional-streaming request whose body ends inside a gRPC message.
GRPC.Server.Adapters.Cowboy.read_stream/1 (grpc_server/lib/grpc/server/adapters/cowboy.ex, and the Cowboy adapter in grpc before the package split) asks for more data whenever the buffer does not hold a complete message. Once the request body has ended, every further read returns an empty chunk, so the buffer never changes and the function retries without end. A single 5-byte length prefix sent with END_STREAM keeps one scheduler busy for as long as the connection stays open, and repeated requests exhaust all schedulers.
This issue affects grpc: from 0.3.1 before 1.0.0; grpc_server: from 1.0.0 before 1.1.0.
| Product | Versions |
|---|---|
| grpc elixir-grpc | 0.3.1 to before 1.0.0 Affected |
| grpc elixir-grpc | 6d8a09ad919e208fb600538ac8b19bd733a04310 to before 0332faae5f5e132314794dbfdae5edecbccea292 Affected |
| grpc_server elixir-grpc | 1.0.0 to before 1.1.0 Affected |
| grpc_server elixir-grpc | 0332faae5f5e132314794dbfdae5edecbccea292 to before 38955f1392cbf08eef231a347348445410455c85 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 8.2 High | EEF |
Weaknesses
References
- CPU exhaustion via a truncated gRPC message on streaming RPCs in elixir-grpc grpc_serverVendor AdvisoryRelated
- EEF CNA record for CVE-2026-121809Related
- OSV record EEF-CVE-2026-121809Related
- Introducing commit 6d8a09a in elixir-grpc/grpcRelated
- Fix commit 0332faa in elixir-grpc/grpcPatch
- Fix commit 38955f1 in elixir-grpc/grpcPatch
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.