Skip to content
High 8.2

grpc_server にメモリを使い果たされる脆弱性 大量のストリーミング要求で悪用の恐れ

CVE-2026-124279 First seen on SecPulse

Summary

grpc_serverには、認証なしの攻撃者がストリーミング要求を大量に送ってサーバーのメモリを使い果たせる脆弱性(CVE-2026-124279)があります。影響は Hex 版の1.0.0以上1.1.0未満で、1.1.0以降で修正されています。すぐに1.1.0以降へ更新してください。

AI summary

Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.

grpc_serverには、認証なしの攻撃者がストリーミング要求を大量に送ってサーバーのメモリを使い果たせる脆弱性(CVE-2026-124279)があります。影響は Hex 版の1.0.0以上1.1.0未満で、1.1.0以降で修正されています。すぐに1.1.0以降へ更新してください。

Affected packages

PackageAffected → Fixed
elixir-grpcgrpc_server
≥ 49e18c3ec6bb9afe2f712caad3dbab5c56a68a00, < b1e771d558941b1ed4b6de8b39f6a5375543db01→ b1e771d558941b1ed4b6de8b39f6a5375543db01
Hexgrpc_server
≥ 1.0.0, < 1.1.0→ 1.1.0
Original description The description as published by the source.

Summary

Allocation of Resources Without Limits or Throttling vulnerability in elixir-grpc grpc_server allows unauthenticated attackers to exhaust server memory via client-streaming or bidirectional-streaming requests.

The streaming read clause of GRPC.Server.Adapters.Cowboy.Handler.info/3 (grpc_server/lib/grpc/server/adapters/cowboy/handler.ex) asks Cowboy for up to 8,000,000 bytes per read and compares the running total with max_body_size only after the read returns. The gRPC length prefix of a message is not checked before the message is buffered. Each stream can therefore buffer up to one full read beyond the configured limit before it is refused, and many concurrent streams exhaust node memory. Releases before 1.0.6 apply no limit to streaming requests at all.

This issue affects grpc_server: from 1.0.0 before 1.1.0.

Details

1. Large reads

async_read_body/2 asks Cowboy for up to 8,000,000 bytes per read on the streaming path, whatever max_body_size is set to.

2. The limit is checked after the read

track_body_bytes/2 adds each returned chunk to a running total and refuses the stream with RESOURCE_EXHAUSTED only once the total exceeds max_body_size. By then the whole chunk is in memory.

3. No check on the length prefix

The 5-byte gRPC prefix can declare up to 4 GiB. The server does not compare it with any limit before buffering, so a prefix that declares an oversized message does not stop the read.

4. Result

Each client-strea…

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

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details