CVE-2026-121808
High 8.2No known exploitationFix availableMemory exhaustion via compressed Erlang terms in the elixir-grpc Erlpack codec
Record last updated
CVSS score
High on a 0 to 10 scale
EPSS, chance of exploitation in 30 days
Higher than 54% of scored CVEs. A prediction, not evidence.
CISA remediation deadline
Not in the KEV catalog
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.
Weakness: CWE-409
Patching and mitigation
- Patch status
- Fix available (source: CVE record (EEF))
- Fix documented (source date)
- Mitigation
- Remove GRPC.Codec.Erlpack from the server's codecs list if the codec is not needed. If the codec is needed, register a wrapper codec in its place. The wrapper implements the GRPC.Codec behaviour, returns "erlpack" from name/0, raises in decode/2 when the body starts with the bytes 131, 80 (the compressed term tag), and delegates all other calls to GRPC.Codec.Erlpack. Source (opens in a new tab)
- Vendor guidance
- github.com (opens in a new tab)
Affected products
| Vendor | Product | Affected versions | Fixed in | Per |
|---|---|---|---|---|
| elixir-grpc | grpc | from 0.4.0 before 1.0.0 | 1.0.0 | CVE Program |
| elixir-grpc | grpc | from 25bcc569fe2cc4478531a6c546c923205fc751c9 before 0332faae5f5e132314794dbfdae5edecbccea292 | 0332faae5f5e132314794dbfdae5edecbccea292 | CVE Program |
| elixir-grpc | grpc_core | from 0332faae5f5e132314794dbfdae5edecbccea292 before d6bc56ac75dfb6c02db2099909210a37c9be8db6 | d6bc56ac75dfb6c02db2099909210a37c9be8db6 | CVE Program |
| elixir-grpc | grpc_core | from 1.0.0 before 1.1.0 | 1.1.0 | CVE Program |
Timeline
Disclosure
CVE record published by EEF
Source: CVE Program (opens in a new tab)
Patch
Fix documented by CVE record (EEF)
Vendor guidance and references
- Fix commit 0332faa in elixir-grpc/grpc (opens in a new tab)patch
- Fix commit d6bc56a in elixir-grpc/grpc (opens in a new tab)patch
- Memory exhaustion via compressed Erlang terms in the elixir-grpc Erlpack codec (opens in a new tab)related, vendor-advisory
- EEF CNA record for CVE-2026-121808 (opens in a new tab)related
- Introducing commit 25bcc56 in elixir-grpc/grpc (opens in a new tab)related
- OSV record EEF-CVE-2026-121808 (opens in a new tab)related