SEVERITY NOT PROVIDED · CVSS 4.0 EPSS 0.5% · 42th percentile CWE-770

CVE-2026-71397: Unbounded request body accumulation on streaming RPCs causes memory exhaustion in grpc_server

Published 2026-11-06 · Updated 2026-11-25 · Also known as EEF-CVE-2026-71397, GHSA-vx6q-cr5q-945g

Summary

An unbounded request body accumulation vulnerability in the Elixir grpc_server package allows unauthenticated attackers to cause a memory exhaustion crash via streaming RPCs. Engineering and security teams using the Hex grpc_server package must update their dependencies immediately.

Who is affected

Deployments running Hex grpc_server versions 1.0.0 through 1.0.5 that expose at least one client-streaming or bidirectional-streaming RPC method are affected. An unauthenticated attacker can send an oversized streaming request body using many small HTTP/2 DATA frames to bypass size limits and crash the entire BEAM node.

Exploitability

The vulnerability is exploitable over the network by unauthenticated attackers with low attack complexity, requiring low privileges and no user interaction. The CISA Known Exploited Vulnerabilities status is false, and EPSS is 0.005 with a 0.424 percentile.

Remediation

How to check your project

Automated analysis of the published advisory data, generated 2026-11-25. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
Hex grpc_server >= 1.0.0, < 1.0.6 1.0.6 mix deps.update grpc_server

CVSS 4.0 vector

CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Attack vectorNetwork
Attack complexityLow
Attack requirementsPresent
Privileges requiredNone
User interactionNone
Confidentiality (vulnerable system)None
Integrity (vulnerable system)None
Availability (vulnerable system)High
Confidentiality (subsequent systems)None
Integrity (subsequent systems)None
Availability (subsequent systems)None

Base score is not computed for CVSS 4.0 vectors; severity is taken from the advisory.

FAQ

What causes the vulnerability?

The streaming read path in grpc_server fails to enforce the configured max_body_size limit, continuously buffering incoming chunks from client-streaming or bidirectional-streaming requests until memory is exhausted.

Are unary requests affected?

No, unary requests correctly enforce the max_body_size cap and are rejected with RESOURCE_EXHAUSTED when they exceed the limit.

What is the fixed version?

The vulnerability is fixed in Hex grpc_server version 1.0.6.

Original advisory description
## Summary Allocation of Resources Without Limits or Throttling vulnerability in elixir-grpc grpc_server allows unauthenticated attackers to exhaust memory and crash the node via an oversized client-streaming or bidirectional-streaming request body. The streaming read clause of `'Elixir.GRPC.Server.Adapters.Cowboy.Handler':info/3` (`grpc_server/lib/grpc/server/adapters/cowboy/handler.ex`) never checks the configured `max_body_size`. Only the unary read path enforces that cap. `'Elixir.GRPC.Server.Adapters.Cowboy':reading_stream/1` (`grpc_server/lib/grpc/server/adapters/cowboy.ex`) appends every received chunk to its buffer until a complete length-prefixed message arrives. A client can declare a very large message and send it across many small HTTP/2 DATA frames, and the server buffers all of it. This issue affects grpc_server: from 1.0.0 before 1.0.6. ## Details **1. The cap applies to unary reads only** The commit that added `max_body_size` checks it in `read_full_body/4`, which serves unary requests through the `{:read_full_body, ref, pid}` clause of `'Elixir.GRPC.Server.Adapters.Cowboy.Handler':info/3`. The `{:read_body, ref, pid}` clause, which serves streaming requests, returns each chunk to the caller with no size check. **2. Unbounded buffering** `'Elixir.GRPC.Server.Adapters.Cowboy':reading_stream/1` reads chunks through that clause and appends each one to a binary buffer. It emits a message only when `GRPC.Message.get_message/1` finds a complete length-prefixed gRPC message in the buffer. Until then, the buffer grows with every chunk. **3. Memory exhaustion** A client that declares a large message length and keeps sending DATA frames without `END_STREAM` makes the buffer grow without limit. The BEAM eventually runs out of memory and the node crashes. ## Proof of concept 1. Start a `grpc_server` endpoint that exposes a client-streaming or bidirectional-streaming RPC method. 2. Open an HTTP/2 connection and send a request to that method. 3. Send the request body across many small HTTP/2 DATA frames without `END_STREAM`, well past the configured `max_body_size`. 4. Observe that the server buffers all of it and server memory grows. The equivalent unary call is rejected with `RESOURCE_EXHAUSTED`. ## Impact An unauthenticated client can crash a `grpc_server` node through one streaming RPC connection. This takes down every service on that node. ## Configurations The server must expose at least one client-streaming or bidirectional-streaming RPC method.

References

Source records: EEF-CVE-2026-71397 (OSV.dev) · EPSS by FIRST, 2026-11-25.