CVE-2026-121808: Memory exhaustion via compressed Erlang terms in the elixir-grpc Erlpack codec
Published 2026-11-13 · Updated 2026-11-25 · Also known as EEF-CVE-2026-121808, GHSA-xxp9-7hp4-rqwp
Summary
An improper handling of highly compressed data vulnerability exists in the elixir-grpc Erlpack codec due to unsafe deserialization of compressed Erlang terms. Engineering and security teams using the affected library versions should update their packages immediately.
Who is affected
Unauthenticated attackers can exploit this vulnerability to trigger memory exhaustion on servers running the elixir-grpc Erlpack codec by sending crafted gRPC messages with compressed Erlang terms. This affects deployments where GRPC.Codec.Erlpack is explicitly registered, allowing small request payloads to inflate into massive memory allocations that impact every service on the node.
Exploitability
The vulnerability is remotely exploitable over a network with low attack complexity and requires low privileges or unauthenticated access, though user interaction is not required. The CVSS 4.0 base score is not computed in the record, but the potential impact focuses heavily on high availability loss with an EPSS score of 0.005 and no known exploitation listed in the CISA KEV database.
Remediation
- Upgrade the Hex package grpc to version 1.0.0 or later.
- Upgrade the Hex package grpc_core to version 1.1.0 or later.
- Remove GRPC.Codec.Erlpack from the server's codecs list if the codec is not needed.
How to check your project
- Check project dependency files (such as mix.exs or mix.lock) for the affected Hex packages grpc (versions from 0.4.0 before 1.0.0) and grpc_core (versions from 1.0.0 before 1.1.0).
- Audit server configurations to determine if GRPC.Codec.Erlpack is explicitly registered in the codecs list.
Automated analysis of the published advisory data, generated 2026-11-25. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| Hex | grpc |
>= 0.4.0, < 1.0.0 | 1.0.0 | mix deps.update grpc |
| Hex | grpc_core |
>= 1.0.0, < 1.1.0 | 1.1.0 | mix deps.update grpc_core |
CVSS 4.0 vector
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
| Attack vector | Network |
|---|---|
| Attack complexity | Low |
| Attack requirements | Present |
| Privileges required | None |
| User interaction | None |
| Confidentiality (vulnerable system) | None |
| Integrity (vulnerable system) | None |
| Availability (vulnerable system) | High |
| Confidentiality (subsequent systems) | None |
| Integrity (subsequent systems) | None |
| Availability (subsequent systems) | None |
Base score is not computed for CVSS 4.0 vectors; severity is taken from the advisory.
FAQ
Which packages are affected by CVE-2026-121808?
The affected packages are Hex grpc (introduced in version 0.4.0 and fixed in 1.0.0) and Hex grpc_core (introduced in version 1.0.0 and fixed in 1.1.0).
How does the memory exhaustion attack work?
An attacker sends a small request body containing a heavily compressed Erlang external term via Content-Type: application/grpc+erlpack. Because binary_to_term/2 inflates the compressed term fully before size validation runs, it forces the server to allocate massive amounts of memory far exceeding the original request size.
Is there a workaround if updating the packages is not immediately possible?
Yes, you can remove GRPC.Codec.Erlpack from the server's codecs list if it is not needed, or implement a wrapper codec that rejects compressed term tags.
Original advisory description
References
- ADVISORY https://github.com/elixir-grpc/grpc/security/advisories/GHSA-xxp9-7hp4-rqwp
- WEB https://cna.erlef.org/cves/CVE-2026-121808.html
- WEB https://github.com/elixir-grpc/grpc/commit/25bcc569fe2cc4478531a6c546c923205fc751c9
- FIX https://github.com/elixir-grpc/grpc/commit/0332faae5f5e132314794dbfdae5edecbccea292
- FIX https://github.com/elixir-grpc/grpc/commit/d6bc56ac75dfb6c02db2099909210a37c9be8db6
- PACKAGE https://hex.pm/packages/grpc
- PACKAGE https://hex.pm/packages/grpc_core
Source records: EEF-CVE-2026-121808 (OSV.dev) · EPSS by FIRST, 2026-11-26.