Refused calls drain the HTTP/2 connection flow-control window in elixir-grpc grpc_server
影響パッケージ
| パッケージ | 影響を受ける版 → 修正版 | |
|---|---|---|
| elixir-grpcgrpc_server |
0332faae5f5e132314794dbfdae5edecbccea292 以上 61a71948e6e7b95efb27d48e7084c764503cc802 未満→ 61a71948e6e7b95efb27d48e7084c764503cc802 |
61a71948e6e7b95efb27d48e7084c764503cc802 |
| Hexgrpc_server |
1.0.0 以上 1.1.0 未満→ 1.1.0 |
1.1.0 |
原文の説明 取得元が公開している説明をそのまま載せています (多くは英語)。
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…
出典: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
参照URL
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- package hex.pm
- package github.com
- patch github.com
- web cna.erlef.org
- web osv.dev
- web github.com
- web github.com
- web repo.hex.pm