本文へ移動
English version →
高 8.2

grpcの脆弱性、圧縮データで認証なしにサーバーのメモリを使い果たされるおそれ

CVE-2026-121808 SecPulse初出

概要

elixir-grpcのErlpackコーデックに、圧縮されたErlang外部項を含む細工したgRPCメッセージでサーバーのメモリを使い果たされる脆弱性があります。認証は不要で、影響はgrpcが0.4.0から1.0.0未満、grpc_coreが1.0.0から1.1.0未満です。修正版はgrpcが1.0.0、grpc_coreが1.1.0なので、該当する版を使っている場合は修正版へ更新してください。

AI要約

SecPulse が外部の生成 AI を使って作った要約です。誤りを含むことがあります。重要な判断の前に、下の原文と参照URLを確認してください。

elixir-grpcのErlpackコーデックに、圧縮されたErlang外部項を含む細工したgRPCメッセージでサーバーのメモリを使い果たされる脆弱性があります。認証は不要で、影響はgrpcが0.4.0から1.0.0未満、grpc_coreが1.0.0から1.1.0未満です。修正版はgrpcが1.0.0、grpc_coreが1.1.0なので、該当する版を使っている場合は修正版へ更新してください。

影響パッケージ

パッケージ影響を受ける版 → 修正版
elixir-grpcgrpc
25bcc569fe2cc4478531a6c546c923205fc751c9 以上 0332faae5f5e132314794dbfdae5edecbccea292 未満→ 0332faae5f5e132314794dbfdae5edecbccea292
elixir-grpcgrpc_core
0332faae5f5e132314794dbfdae5edecbccea292 以上 d6bc56ac75dfb6c02db2099909210a37c9be8db6 未満→ d6bc56ac75dfb6c02db2099909210a37c9be8db6
Hexgrpc
0.4.0 以上 1.0.0 未満→ 1.0.0
Hexgrpc_core
1.0.0 以上 1.1.0 未満→ 1.1.0
原文の説明 取得元が公開している説明をそのまま載せています (多くは英語)。

Summary

Improper Handling of Highly Compressed Data (Data Amplification) vulnerability in elixir-grpc grpc_core and grpc allows unauthenticated attackers to exhaust server memory via a compressed Erlang external term in a gRPC message body.

GRPC.Codec.Erlpack.decode/2 (grpc_core/lib/grpc/codec/erlpack.ex, and lib/grpc/codec/erlpack.ex before the package split) passes the message body to :erlang.binary_to_term/2. That function inflates a compressed term in full before it returns. The codec sets no limit on the decoded size, and its type checks run only on the decoded term. The server's max_body_size limit counts the compressed bytes of the request. A request with Content-Type: application/grpc+erlpack can therefore make the server allocate a term much larger than the request body.

This issue affects grpc: from 0.4.0 before 1.0.0; grpc_core: from 1.0.0 before 1.1.0.

Details

1. Codec selection

The server selects the codec from the request Content-Type. application/grpc+erlpack selects GRPC.Codec.Erlpack when the server registers it. No authentication step comes before this.

2. Size limit on compressed bytes only

The server limits the request body with max_body_size, which counts the bytes received. With the gRPC compressed flag set to 0, the transport decompression limit does not apply, and the message reaches the codec unchanged.

3. Expansion inside binary_to_term/2

GRPC.Codec.Erlpack.decode/2 calls `:erlang.binary_to_term(bin…

出典: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

参照URL

当サイトでは、アクセス解析と広告の効果測定のためにCookieを使います。株式会社Gameのサイト共通の設定です。 詳しく