Skip to content
Threat Brief

← All advisories

CVE-2026-121808

High 8.2No known exploitationFix available

Memory exhaustion via compressed Erlang terms in the elixir-grpc Erlpack codec

Record last updated

CVSS score

8.2

High on a 0 to 10 scale

EPSS, chance of exploitation in 30 days

0.7%

Higher than 54% of scored CVEs. A prediction, not evidence.

CISA remediation deadline

None

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

VendorProductAffected versionsFixed inPer
elixir-grpcgrpcfrom 0.4.0 before 1.0.01.0.0CVE Program
elixir-grpcgrpcfrom 25bcc569fe2cc4478531a6c546c923205fc751c9 before 0332faae5f5e132314794dbfdae5edecbccea2920332faae5f5e132314794dbfdae5edecbccea292CVE Program
elixir-grpcgrpc_corefrom 0332faae5f5e132314794dbfdae5edecbccea292 before d6bc56ac75dfb6c02db2099909210a37c9be8db6d6bc56ac75dfb6c02db2099909210a37c9be8db6CVE Program
elixir-grpcgrpc_corefrom 1.0.0 before 1.1.01.1.0CVE Program

Timeline

  1. Disclosure

    CVE record published by EEF

    Source: CVE Program (opens in a new tab)

  2. Patch

    Fix documented by CVE record (EEF)

    Source: CVE record (EEF) (opens in a new tab)

Vendor guidance and references