Memory exhaustion via compressed Erlang terms in the elixir-grpc Erlpack codec
Summary
| CVE | CVE-2026-121808 |
|---|---|
| State | PUBLISHED |
| Assigner | EEF |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-11-13 16:17:36 UTC |
| Updated | 2026-11-13 16:17:36 UTC |
| 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. |
Risk And Classification
Primary CVSS: v4.0 8.2 HIGH from 6b3ad84c-e1a6-4bf7-a703-f496b71e49db
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
EPSS: 0.007020000 probability, percentile 0.538060000 (date 2026-11-15)
Problem Types: CWE-409 | CWE-409 CWE-409 Improper Handling of Highly Compressed Data (Data Amplification)
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 4.0 | 6b3ad84c-e1a6-4bf7-a703-f496b71e49db | Secondary | 8.2 | HIGH | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/C... |
| 4.0 | CNA | CVSS | 8.2 | HIGH | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N |
CVSS v4.0 Breakdown
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Elixir-grpc | Grpc | affected 0.4.0 1.0.0 semver | Not specified |
| CNA | Elixir-grpc | Grpc | affected 25bcc569fe2cc4478531a6c546c923205fc751c9 0332faae5f5e132314794dbfdae5edecbccea292 git | Not specified |
| CNA | Elixir-grpc | Grpc Core | affected 1.0.0 1.1.0 semver | Not specified |
| CNA | Elixir-grpc | Grpc Core | affected 0332faae5f5e132314794dbfdae5edecbccea292 d6bc56ac75dfb6c02db2099909210a37c9be8db6 git | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| github.com/elixir-grpc/grpc/commit/25bcc569fe2cc4478531a6c546c923205fc751c9 | 6b3ad84c-e1a6-4bf7-a703-f496b71e49db | github.com | |
| github.com/elixir-grpc/grpc/security/advisories/GHSA-xxp9-7hp4-rqwp | 6b3ad84c-e1a6-4bf7-a703-f496b71e49db | github.com | |
| github.com/elixir-grpc/grpc/commit/0332faae5f5e132314794dbfdae5edecbccea292 | 6b3ad84c-e1a6-4bf7-a703-f496b71e49db | github.com | |
| osv.dev/vulnerability/EEF-CVE-2026-121808 | 6b3ad84c-e1a6-4bf7-a703-f496b71e49db | osv.dev | |
| github.com/elixir-grpc/grpc/commit/d6bc56ac75dfb6c02db2099909210a37c9be8db6 | 6b3ad84c-e1a6-4bf7-a703-f496b71e49db | github.com | |
| cna.erlef.org/cves/CVE-2026-121808.html | 6b3ad84c-e1a6-4bf7-a703-f496b71e49db | cna.erlef.org | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
Vendor Comments And Credit
Discovery Credit
CNA: Jace (en)
CNA: zx (en)
CNA: zx (en)
CNA: Jiacheng Zhong (en)
CNA: Zhun Wang (en)
CNA: Junmin Zhu (en)
CNA: Hongwei Li (en)
CNA: Han Dai (en)
CNA: Suyue Guo (en)
CNA: Songyang Peng (en)
CNA: Ziyue Pan (en)
CNA: Hongwei Li (en)
CNA: Paulo Valente (en)
CNA: Jonatan Männchen / EEF (en)
CNA: Peter Ullrich (en)
Additional Advisory Data
Workarounds
CNA: 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.