CPU exhaustion via a truncated gRPC message on streaming RPCs in elixir-grpc grpc_server
- CVE-2026-121809
- EUVD-2026-125542
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.
Text from the CVE.org record.
Recommendation
elixir-grpc grpc
- If you run a version from 0.3.1 to before 1.0.0update to 1.0.0 or laterMajor version change: expect breaking changes
elixir-grpc grpc_server
- If you run a version from 1.0.0 to before 1.1.0update to 1.1.0 or laterMinor version change: check the release notes
Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.
Affected
elixir-grpc grpc
Affected versions Fixed in from 0.3.1 to before 1.0.0 1.0.0 elixir-grpc grpc_server
Affected versions Fixed in from 1.0.0 to before 1.1.0 1.1.0
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.