CVE-2026-48854: gRPC Erlang package has unbounded request body accumulation in `read_full_body/3`
Summary 'Elixir.GRPC.Server.Adapters.Cowboy.Handler':readfullbody/3 accumulates every received chunk into a single growing binary with no size cap. When the client omits the grpc-timeout header, the read timeout resolves to :infinity, allowing a slow-trickle attacker to hold the connection open indefinitely while memory grows.
Published Aug 25, 2026
Affected packages
grpc
- Ecosystem
- Erlang (Hex)
- Affected
- >= 0.3.1, < 1.0.0
- Fixed in
- 1.0.0
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Summary
'Elixir.GRPC.Server.Adapters.Cowboy.Handler':read_full_body/3 accumulates every received chunk into a single growing binary with no size cap. When the client omits the grpc-timeout header, the read timeout resolves to :infinity, allowing a slow-trickle attacker to hold the connection open indefinitely while memory grows. A single unauthenticated connection is sufficient to exhaust BEAM memory and crash the node.
Details
The read loop in lib/grpc/server/adapters/cowboy/handler.ex calls :cowboy_req.read_body/2 in a recursive loop, concatenating each chunk: body <> data. There is no running-total check and no configurable maximum body size. As the loop drains the receive buffer, cowboy issues fresh HTTP/2 WINDOW_UPDATE frames, so the client can keep pushing data indefinitely.
The grpc-timeout header is attacker-supplied and optional. When absent, timeout_left_opt(nil) returns :infinity, so the per-chunk read also has no deadline. The two missing controls compound: a fast client can blast multi-gigabyte payloads directly into memory; a slow client can trickle data forever.
PoC
- Start any
grpcserver exposing a unary RPC (no special configuration required). - Open an HTTP/2 connection and send a POST to any unary RPC path with
Content-Type: application/grpc+proto— omit thegrpc-timeoutheader. - Stream a large body (e.g. 1 GiB) in chunks without sending the final
END_STREAMflag immediately. - Observe BEAM memory growing proportionally to uploaded data with no server-side cap.
Impact
Affects grpc ≥ 0.3.1. No authentication, no special configuration, and no specific RPC method required, the unbounded read is on the default unary ingress path.
References
- Introduction commit: https://github.com/elixir-grpc/grpc/commit/d1abe70a6cad6dac4a3f8235d883d7c896989560
- Patch commit: https://github.com/elixir-grpc/grpc/commit/49e18c3ec6bb9afe2f712caad3dbab5c56a68a00
Credited to PJUllrich, polvalente, maennchen.
References
- https://github.com/elixir-grpc/grpc/security/advisories/GHSA-q8gf-9rvj-gmgj
- https://nvd.nist.gov/vuln/detail/CVE-2026-48854
- https://github.com/elixir-grpc/grpc/pull/542
- https://github.com/elixir-grpc/grpc/commit/49e18c3ec6bb9afe2f712caad3dbab5c56a68a00
- https://cna.erlef.org/cves/CVE-2026-48854.html
- https://github.com/elixir-grpc/grpc/releases/tag/v1.0.0
- https://osv.dev/vulnerability/EEF-CVE-2026-48854
- https://github.com/advisories/GHSA-q8gf-9rvj-gmgj
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Erlang (Hex) vulnerabilities
All Erlang (Hex) entriesCVE-2026-48599
gRPC Erlang package's path bindings are overridable by query string and request body
high7.6Aug 25, 2026CVE-2026-48853
gRPC Erlang package vulnerable to Remote Code Execution with attacker-controlled gRPC payloads
critical9.2Aug 25, 2026CVE-2026-53430
gRPC Erlang package has unbounded gzip decompression (decompression bomb)
high8.7Aug 25, 2026
