Read the docs

Infinite loop in elixir-grpc grpc_server streaming RPCs exhausts CPU

Priority LOW 37CWE-400Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Attack requirements
Present
Impact type
Denial of service
Confidentiality · integrity · availability
None · None · High
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-400.

Summary

The grpc_server package from 1.0.0 before 1.1.0 and the grpc package from 0.3.1 before 1.0.0 in elixir-grpc loop forever in the Cowboy adapter's read_stream function (CWE-835). When a streaming request body ends inside a gRPC message, the function keeps retrying the read. An unauthenticated remote attacker can occupy a BEAM scheduler indefinitely, and repeated requests can exhaust all schedulers (CWE-400).

Written with Claude Haiku 5.5 from the sources below · 2026-11-13

Description from the CNA

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_server: from 1.0.0 before 1.1.0; grpc: from 0.3.1 before 1.0.0.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00655 51st percentileScored 2026-11-16
Fix Fixed grpc_server (elixir-grpc): 1.1.0grpc (elixir-grpc): 1.0.0

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
elixir-grpcgrpc_server1.0.0 to before 1.1.01.1.0Patch availableCNA
elixir-grpcgrpc0.3.1 to before 1.0.01.0.0Patch availableCNA
  • grpc_server Vendorelixir-grpc Affected 1.0.0 to before 1.1.0 Fixed in 1.1.0 Patch available CNA
  • grpc Vendorelixir-grpc Affected 0.3.1 to before 1.0.0 Fixed in 1.0.0 Patch available CNA

CPE names CNA · 2

CPEVersionsRoleVendor
cpe:2.3:a:elixir-grpc:grpc_server:*:*:*:*:*:*:*:*———
cpe:2.3:a:elixir-grpc:grpc:*:*:*:*:*:*:*:*———
  • cpe:2.3:a:elixir-grpc:grpc_server:*:*:*:*:*:*:*:* Versions — — ·—
  • cpe:2.3:a:elixir-grpc:grpc:*:*:*:*:*:*:*:* Versions — — ·—

Remediation

Upgrade grpc_server to 1.1.0 and grpc to 1.0.0, which fix the flaw.

Written with Claude Haiku 5.5 from the sources below · 2026-11-13

  • Fix · CNA grpc_server (elixir-grpc) Fixed in 1.1.0
  • Fix · CNA grpc (elixir-grpc) Fixed in 1.0.0

Fixed in the same release

Records fixed by the same vendor advisory or release, as the CNA lists them.

  • Release ·

    elixir-grpc grpc_server 1.1.0

    4 records Highest priority Priority LOW 4 LOW

    Other records, highest priority first

    • TI-2026-91651 Resource exhaustion in elixir-grpc grpc_server streaming requestsPriority LOW 36
    • TI-2026-91649 Path bindings ignored for gRPC Content-Types in elixir-grpc grpc_serverPriority LOW 36
    • TI-2026-91620 Refused calls stall HTTP/2 connections in elixir-grpc grpc_serverPriority LOW 28
  • Release ·

    elixir-grpc grpc 0332faae5f5e132314794dbfdae5edecbccea292, 1.0.0

    3 records Highest priority Priority LOW 3 LOW

    Other records, highest priority first

    • TI-2026-91639 Memory exhaustion via compressed Erlang terms in elixir-grpcPriority LOW 37
    • TI-2026-91649 Path bindings ignored for gRPC Content-Types in elixir-grpc grpc_serverPriority LOW 36

Timeline

  1. 2026-11-13 Threatist record created from CVE-2026-121809
  2. 2026-11-13 CISA SSVC decision points changed

References

  • TI-2026-36118 Remote code execution and denial of service via unsafe Erlang term deserialization in elixir-grpc/grpc CVSS 4.0CRITICAL 9.2
  • TI-2026-38512 grpc gzip decompression bomb in GRPC.Compressor.Gzip.decompress/1 CVSS 4.0HIGH 8.7
  • TI-2026-36119 Unbounded request body accumulation causes memory exhaustion in elixir-grpc/grpc CVSS 4.0HIGH 8.7
  • TI-2026-86129 Unbounded request buffering in elixir-grpc grpc_server exhausts memory CVSS 4.0HIGH 8.2
  • TI-2026-35955 Authorization bypass via path binding override in elixir-grpc/grpc HTTP transcoding CVSS 4.0HIGH 7.6
  • TI-2026-91639 Memory exhaustion via compressed Erlang terms in elixir-grpc CVSS 4.0HIGH 8.2
See all 9 →

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences