CVE-2026-123635
JSON

6.3medium

Refused calls drain the HTTP/2 connection flow-control window in elixir-grpc grpc_server

Severity
6.3medium CVSS:4.0 by EEF
Exploit likelihood
0.49% (higher than 43% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
EEF
Also known as
EEF-CVE-2026-123635GHSA-7x9q-vvph-rjcr

Description

Missing Release of Resource after Effective Lifetime vulnerability in elixir-grpc grpc_server allows a client to stall all later calls on a shared HTTP/2 connection via calls that the server refuses while their DATA frames are in flight. The stream handler grpc_stream_h (grpc_server/src/grpc_stream_h.erl) requests flow from Cowboy only for request data that has arrived. When the server refuses a call early, for example because the body exceeds max_body_size or the method is not implemented, Cowboy drops the DATA frames still in flight for that stream. Their bytes are not returned to the connection flow-control window. After enough refused calls the window is empty. No call on that connection can then send a request body, and each call waits until its deadline. Other connections are not affected. This issue affects grpc_server: from 1.0.0 before 1.1.0.

Affected

Product or packageVersionsReported by
grpc_serverfrom 1.0.0 before 1.1.0CVE List
elixir-grpc/grpcfrom 0332faae5f5e132314794dbfdae5edecbccea292 before 61a71948e6e7b95efb27d48e7084c764503cc802CVE List
grpc_server (Hex)from 1.0.0 before 1.1.0Erlang Ecosystem Foundation
https://github.com/elixir-grpc/grpcfrom 0332faae5f5e132314794dbfdae5edecbccea292 before 61a71948e6e7b95efb27d48e7084c764503cc802Erlang Ecosystem Foundation

All scores

EEF6.3medium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
Erlang Ecosystem FoundationNot scored CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

Classification

CWE-772

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.

What each source says

CVE List

Missing Release of Resource after Effective Lifetime vulnerability in elixir-grpc grpc_server allows a client to stall all later calls on a shared HTTP/2 connection via calls that the server refuses while their DATA frames are in flight. The stream handler grpc_stream_h (grpc_server/src/grpc_stream_h.erl) requests flow from Cowboy only for request data that has arrived. When the server refuses a call early, for example because the body exceeds max_body_size or the method is not implemented, Cowboy drops the DATA frames still in flight for that stream. Their bytes are not returned to the connection flow-control window. After enough refused calls the window is empty. No call on that connection can then send a request body, and each call waits until its deadline. Other connections are not affected. This issue affects grpc_server: from 1.0.0 before 1.1.0.

Erlang Ecosystem Foundation

Summary

Missing Release of Resource after Effective Lifetime vulnerability in elixir-grpc grpc_server allows a client to stall all later calls on a shared HTTP/2 connection via calls that the server refuses while their DATA frames are in flight.

The stream handler grpc_stream_h (grpc_server/src/grpc_stream_h.erl) requests flow from Cowboy only for request data that has arrived. When the server refuses a call early, for example because the body exceeds max_body_size or the method is not implemented, Cowboy drops the DATA frames still in flight for that stream. Their bytes are not returned to the connection flow-control window. After enough refused calls the window is empty. No call on that connection can then send a request body, and each call waits until its deadline. Other connections are not affected.

This issue affects grpc_server: from 1.0.0 before 1.1.0.

Details

1. Flow is requested only for data that arrived

Cowboy increases the HTTP/2 connection window only when a stream handler returns a {flow, N} command. grpc_stream_h returns that command only for request data it has received.

2. A refused call leaves data uncredited

When the server refuses a call, the stream stops. The client can still have DATA frames in flight for it. Cowboy drops those frames without running the handler, so no flow is requested for their bytes and no connection-level WINDOW_UPDATE is sent.

3. The window empties

Each refused call with DATA in flight reduces the connection window for good. With the default 65,535-byte window, the window was empty after two refused calls in a test against v1.0.6. An empty window stops all request data, so no handler requests flow again and the window stays empty.

4. Result

Every later call on the connection that has a request body waits until its deadline. A new connection works normally.

Proof of concept

  1. Start a gRPC server with a small max_body_size, for example 1000 bytes.
  2. Open one HTTP/2 connection with a client that tracks the connection window.
  3. Send a unary call with a body above the limit and wait for the RESOURCE_EXHAUSTED reply.
  4. Send more DATA frames on the refused stream, up to what the stream and connection windows allow.
  5. Repeat steps 3 and 4 on new streams until the connection window is 0.
  6. Send a small valid unary call on the same connection. Observe that its body cannot be sent and that the call ends at its deadline.

Impact

A client whose calls share an HTTP/2 connection with other callers can make all later calls on that connection wait until their deadlines. Calls on other connections are served normally.

Workarounds

Put a Cowboy stream handler in front of grpc_stream_h with the adapter option stream_handlers: [MyHandler, :grpc_stream_h]. In init/3, the handler calls :cowboy_stream.init/3 and adds a {:flow, size} command when the request has a body, where size is Cowboy's max_frame_size_received (16384 by default). It passes all other callbacks to :cowboy_stream.

Configurations

Calls from more than one caller must share one HTTP/2 connection to the server, for example through a proxy or a shared client channel.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-123635 changed 2026-11-19CVE Terms of Use
Erlang Ecosystem FoundationEEF-CVE-2026-123635 changed 2026-11-25CC-BY-4.0
NVDCVE-2026-123635 changed 2026-11-23Public domain