Memory exhaustion via compressed Erlang terms in the elixir-grpc Erlpack codec
- State
- Published
- Severity
- 8.2 High
- Published
- Nov 13, 2026
- Updated
- Nov 20, 2026
- Reserved
- Nov 9, 2026
Description
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.
| Product | Versions |
|---|---|
| grpc elixir-grpc | 0.4.0 to before 1.0.0 Affected |
| grpc elixir-grpc | 25bcc569fe2cc4478531a6c546c923205fc751c9 to before 0332faae5f5e132314794dbfdae5edecbccea292 Affected |
| grpc_core elixir-grpc | 1.0.0 to before 1.1.0 Affected |
| grpc_core elixir-grpc | 0332faae5f5e132314794dbfdae5edecbccea292 to before d6bc56ac75dfb6c02db2099909210a37c9be8db6 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 8.2 High | EEF |
Weaknesses
- CWE-409 Improper Handling of Highly Compressed Data (Data Amplification)
References
- Memory exhaustion via compressed Erlang terms in the elixir-grpc Erlpack codecVendor AdvisoryRelated
- EEF CNA record for CVE-2026-121808Related
- OSV record EEF-CVE-2026-121808Related
- Introducing commit 25bcc56 in elixir-grpc/grpcRelated
- Fix commit 0332faa in elixir-grpc/grpcPatch
- Fix commit d6bc56a in elixir-grpc/grpcPatch
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.