{"id":"CVE-2026-123635","state":"PUBLISHED","title":"Refused calls drain the HTTP/2 connection flow-control window in elixir-grpc grpc_server","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.\n\nThe 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.\n\nThis issue affects grpc_server: from 1.0.0 before 1.1.0.","publishedAt":"2026-11-13T15:40:16.288Z","updatedAt":"2026-11-19T06:57:13.235Z","severity":{"score":6.3,"label":"Medium","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N","source":"EEF"},"assigner":"EEF","products":["elixir-grpc grpc_server"],"affected":[{"vendor":"elixir-grpc","product":"grpc_server","packageName":"grpc_server","packageURL":"pkg:hex/grpc_server","defaultStatus":"unaffected","versions":[{"version":"1.0.0","status":"affected","lessThan":"1.1.0","versionType":"semver"}],"collectionURL":"https://repo.hex.pm","cpes":["cpe:2.3:a:elixir-grpc:grpc_server:*:*:*:*:*:*:*:*"],"modules":["grpc_stream_h"],"programFiles":["src/grpc_stream_h.erl"],"programRoutines":[{"name":"grpc_stream_h:init/3"}],"repo":"https://github.com/elixir-grpc/grpc"},{"vendor":"elixir-grpc","product":"grpc_server","packageName":"elixir-grpc/grpc","packageURL":"pkg:github/elixir-grpc/grpc","defaultStatus":"unaffected","versions":[{"version":"0332faae5f5e132314794dbfdae5edecbccea292","status":"affected","lessThan":"61a71948e6e7b95efb27d48e7084c764503cc802","versionType":"git"}],"collectionURL":"https://github.com","cpes":["cpe:2.3:a:elixir-grpc:grpc_server:*:*:*:*:*:*:*:*"],"modules":["grpc_stream_h"],"programFiles":["grpc_server/src/grpc_stream_h.erl"],"programRoutines":[{"name":"grpc_stream_h:init/3"}],"repo":"https://github.com/elixir-grpc/grpc"}],"references":["https://github.com/elixir-grpc/grpc/security/advisories/GHSA-7x9q-vvph-rjcr","https://cna.erlef.org/cves/CVE-2026-123635.html","https://osv.dev/vulnerability/EEF-CVE-2026-123635","https://github.com/elixir-grpc/grpc/commit/0332faae5f5e132314794dbfdae5edecbccea292","https://github.com/elixir-grpc/grpc/commit/61a71948e6e7b95efb27d48e7084c764503cc802"],"weaknesses":["CWE-772"],"ingestedAt":"2026-11-19T07:02:06.044Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/123xxx/CVE-2026-123635.json","commit":"c9acab83ff44166e19db9a7e14fb5e68ded618ac","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-123635","state":"PUBLISHED","datePublished":"2026-11-13T15:40:16.288Z","dateUpdated":"2026-11-19T06:57:13.235Z","assignerShortName":"EEF","assignerOrgId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","dateReserved":"2026-11-09T22:27:54.995Z"},"containers":{"cna":{"title":"Refused calls drain the HTTP/2 connection flow-control window in elixir-grpc grpc_server","descriptions":[{"lang":"en","value":"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.\n\nThe 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.\n\nThis issue affects grpc_server: from 1.0.0 before 1.1.0."}],"affected":[{"vendor":"elixir-grpc","product":"grpc_server","packageName":"grpc_server","packageURL":"pkg:hex/grpc_server","defaultStatus":"unaffected","versions":[{"version":"1.0.0","status":"affected","lessThan":"1.1.0","versionType":"semver"}],"collectionURL":"https://repo.hex.pm","cpes":["cpe:2.3:a:elixir-grpc:grpc_server:*:*:*:*:*:*:*:*"],"modules":["grpc_stream_h"],"programFiles":["src/grpc_stream_h.erl"],"programRoutines":[{"name":"grpc_stream_h:init/3"}],"repo":"https://github.com/elixir-grpc/grpc"},{"vendor":"elixir-grpc","product":"grpc_server","packageName":"elixir-grpc/grpc","packageURL":"pkg:github/elixir-grpc/grpc","defaultStatus":"unaffected","versions":[{"version":"0332faae5f5e132314794dbfdae5edecbccea292","status":"affected","lessThan":"61a71948e6e7b95efb27d48e7084c764503cc802","versionType":"git"}],"collectionURL":"https://github.com","cpes":["cpe:2.3:a:elixir-grpc:grpc_server:*:*:*:*:*:*:*:*"],"modules":["grpc_stream_h"],"programFiles":["grpc_server/src/grpc_stream_h.erl"],"programRoutines":[{"name":"grpc_stream_h:init/3"}],"repo":"https://github.com/elixir-grpc/grpc"}],"references":[{"url":"https://github.com/elixir-grpc/grpc/security/advisories/GHSA-7x9q-vvph-rjcr","name":"Refused calls drain the HTTP/2 connection flow-control window in elixir-grpc grpc_server","tags":["vendor-advisory","related"]},{"url":"https://cna.erlef.org/cves/CVE-2026-123635.html","name":"EEF CNA record for CVE-2026-123635","tags":["related"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-123635","name":"OSV record EEF-CVE-2026-123635","tags":["related"]},{"url":"https://github.com/elixir-grpc/grpc/commit/0332faae5f5e132314794dbfdae5edecbccea292","name":"Introducing commit 0332faa in elixir-grpc/grpc","tags":["related"]},{"url":"https://github.com/elixir-grpc/grpc/commit/61a71948e6e7b95efb27d48e7084c764503cc802","name":"Fix commit 61a7194 in elixir-grpc/grpc","tags":["patch"]}],"metrics":[{"cvssV4_0":{"Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","Safety":"NOT_DEFINED","attackComplexity":"LOW","attackRequirements":"PRESENT","attackVector":"NETWORK","baseScore":6.3,"baseSeverity":"MEDIUM","privilegesRequired":"NONE","providerUrgency":"NOT_DEFINED","subAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","userInteraction":"NONE","valueDensity":"NOT_DEFINED","vectorString":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N","version":"4.0","vulnAvailabilityImpact":"LOW","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"NONE","vulnerabilityResponseEffort":"NOT_DEFINED"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-772","description":"CWE-772 Missing Release of Resource after Effective Lifetime","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"EEF","orgId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","dateUpdated":"2026-11-19T06:57:13.235Z"},"configurations":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>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.</p>"},{"base64":false,"type":"text/markdown","value":"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."}],"value":"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."}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:a:elixir-grpc:grpc_server:*:*:*:*:*:*:*:*","versionEndExcluding":"1.1.0","versionStartIncluding":"1.0.0","vulnerable":true}],"negate":false,"operator":"OR"}],"operator":"AND"}],"credits":[{"lang":"en","type":"finder","value":"Aaron Lovi"},{"lang":"en","type":"reporter","value":"Aaron Lovi"},{"lang":"en","type":"coordinator","value":"Jonatan Männchen / EEF"},{"lang":"en","type":"remediation developer","value":"Paulo Valente"}],"dateAssigned":"2026-11-12T20:33:14.000Z","datePublic":"2026-11-13T15:40:16.000Z","impacts":[{"capecId":"CAPEC-131","descriptions":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>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.</p>"},{"base64":false,"type":"text/markdown","value":"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."}],"value":"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."}]}],"source":{"discovery":"EXTERNAL"},"workarounds":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>Put a Cowboy stream handler in front of <code>grpc_stream_h</code> with the adapter option <code>stream_handlers: [MyHandler, :grpc_stream_h]</code>. In <code>init/3</code>, the handler calls <code>:cowboy_stream.init/3</code> and adds a <code>{:flow, size}</code> command when the request has a body, where <code>size</code> is Cowboy's <code>max_frame_size_received</code> (16384 by default). It passes all other callbacks to <code>:cowboy_stream</code>.</p>"},{"base64":false,"type":"text/markdown","value":"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`."}],"value":"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."}],"x_proofOfConcept":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<ol>\n<li>Start a gRPC server with a small <code>max_body_size</code>, for example 1000 bytes.</li>\n<li>Open one HTTP/2 connection with a client that tracks the connection window.</li>\n<li>Send a unary call with a body above the limit and wait for the <code>RESOURCE_EXHAUSTED</code> reply.</li>\n<li>Send more DATA frames on the refused stream, up to what the stream and connection windows allow.</li>\n<li>Repeat steps 3 and 4 on new streams until the connection window is 0.</li>\n<li>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.</li>\n</ol>"},{"base64":false,"type":"text/markdown","value":"1. Start a gRPC server with a small `max_body_size`, for example 1000 bytes.\n2. Open one HTTP/2 connection with a client that tracks the connection window.\n3. Send a unary call with a body above the limit and wait for the `RESOURCE_EXHAUSTED` reply.\n4. Send more DATA frames on the refused stream, up to what the stream and connection windows allow.\n5. Repeat steps 3 and 4 on new streams until the connection window is 0.\n6. 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."}],"value":"* Start a gRPC server with a small max_body_size, for example 1000 bytes.\n* Open one HTTP/2 connection with a client that tracks the connection window.\n* Send a unary call with a body above the limit and wait for the RESOURCE_EXHAUSTED reply.\n* Send more DATA frames on the refused stream, up to what the stream and connection windows allow.\n* Repeat steps 3 and 4 on new streams until the connection window is 0.\n* 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."}],"x_technicalAnalysis":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p><strong>1. Flow is requested only for data that arrived</strong></p>\n<p>Cowboy increases the HTTP/2 connection window only when a stream handler returns a <code>{flow, N}</code> command. <code>grpc_stream_h</code> returns that command only for request data it has received.</p>\n<p><strong>2. A refused call leaves data uncredited</strong></p>\n<p>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 <code>WINDOW_UPDATE</code> is sent.</p>\n<p><strong>3. The window empties</strong></p>\n<p>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.</p>\n<p><strong>4. Result</strong></p>\n<p>Every later call on the connection that has a request body waits until its deadline. A new connection works normally.</p>"},{"base64":false,"type":"text/markdown","value":"**1. Flow is requested only for data that arrived**\n\nCowboy 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.\n\n**2. A refused call leaves data uncredited**\n\nWhen 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.\n\n**3. The window empties**\n\nEach 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.\n\n**4. Result**\n\nEvery later call on the connection that has a request body waits until its deadline. A new connection works normally."}],"value":"1. Flow is requested only for data that arrived\n\nCowboy 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.\n\n2. A refused call leaves data uncredited\n\nWhen 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.\n\n3. The window empties\n\nEach 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.\n\n4. Result\n\nEvery later call on the connection that has a request body waits until its deadline. A new connection works normally."}]},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/elixir-grpc/grpc/security/advisories/GHSA-7x9q-vvph-rjcr","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-11-17T15:48:16.081688Z","id":"CVE-2026-123635","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-11-17T15:48:39.235Z"}}]}}}