CVE-2026-121809CPU exhaustion via a truncated gRPC message on streaming RPCs in elixir-grpc grpc_server
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.
What to do
None of the Linux distributions or Windows releases we track list an affected package for this CVE. Check the vendor-reported products below.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
What the vendor says
As published in the CVE record by EEF, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- elixir-grpc grpc: affected: 0.3.1 to before 1.0.0; fixed in
1.0.0 - elixir-grpc grpc: affected: 6d8a09ad919e208fb600538ac8b19bd733a04310 to before 0332faae5f5e132314794dbfdae5edecbccea292; fixed in
0332faae5f5e132314794dbfdae5edecbccea292 - elixir-grpc grpc_server: affected: 1.0.0 to before 1.1.0; fixed in
1.1.0 - elixir-grpc grpc_server: affected: 0332faae5f5e132314794dbfdae5edecbccea292 to before 38955f1392cbf08eef231a347348445410455c85; fixed in
38955f1392cbf08eef231a347348445410455c85
Vendor advisories:
- https://github.com/elixir-grpc/grpc/security/advisories/GHSA-c2h9-f9cc-27xh (vendor-advisory)
- https://github.com/elixir-grpc/grpc/commit/0332faae5f5e132314794dbfdae5edecbccea292 (patch)
- https://github.com/elixir-grpc/grpc/commit/38955f1392cbf08eef231a347348445410455c85 (patch)
References
- https://github.com/elixir-grpc/grpc/security/advisories/GHSA-c2h9-f9cc-27xh
- https://cna.erlef.org/cves/CVE-2026-121809.html
- https://osv.dev/vulnerability/EEF-CVE-2026-121809
- https://github.com/elixir-grpc/grpc/commit/6d8a09ad919e208fb600538ac8b19bd733a04310
- https://github.com/elixir-grpc/grpc/commit/0332faae5f5e132314794dbfdae5edecbccea292
- https://github.com/elixir-grpc/grpc/commit/38955f1392cbf08eef231a347348445410455c85
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.