CVE-2026-121808
Memory exhaustion via compressed Erlang terms in the elixir-grpc Erlpack codec
Mitigation
- Upgrade grpc to 1.0.0 or later.
- Upgrade grpc to 0332faae5f5e132314794dbfdae5edecbccea292 or later.
- Upgrade grpc_core to 1.1.0 or later.
- Vendor workaround: 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.
Who should check
- Anyone running elixir-grpc grpc >= 0.4.0, < 1.0.0
- Anyone running elixir-grpc grpc >= 25bcc569fe2cc4478531a6c546c923205fc751c9, < 0332faae5f5e132314794dbfdae5edecbccea292
- Anyone running elixir-grpc grpc_core >= 1.0.0, < 1.1.0
- Anyone running elixir-grpc grpc_core >= 0332faae5f5e132314794dbfdae5edecbccea292, < d6bc56ac75dfb6c02db2099909210a37c9be8db6
Vulnerability facts
- Affected
- elixir-grpc grpc >= 0.4.0, < 1.0.0; elixir-grpc grpc >= 25bcc569fe2cc4478531a6c546c923205fc751c9, < 0332faae5f5e132314794dbfdae5edecbccea292; elixir-grpc grpc_core >= 1.0.0, < 1.1.0; elixir-grpc grpc_core >= 0332faae5f5e132314794dbfdae5edecbccea292, < d6bc56ac75dfb6c02db2099909210a37c9be8db6
- Fixed in
- elixir-grpc grpc 1.0.0, elixir-grpc grpc 0332faae5f5e132314794dbfdae5edecbccea292, elixir-grpc grpc_core 1.1.0
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 8.2 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Attack requirements: Present
- Privileges required: None
- User interaction: None
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- Confidentiality impact on other systems: None
- Integrity impact on other systems: None
- Availability impact on other systems: None
- EPSS
- 0.59% chance of exploitation in 30 days (percentile 42, 2026-11-28)
- CWE
- CWE-409
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| elixir-grpc grpc | >= 0.4.0, < 1.0.0 | — | cvelist |
| elixir-grpc grpc | >= 25bcc569fe2cc4478531a6c546c923205fc751c9, < 0332faae5f5e132314794dbfdae5edecbccea292 | — | cvelist |
| elixir-grpc grpc_core | >= 1.0.0, < 1.1.0 | — | cvelist |
| elixir-grpc grpc_core | >= 0332faae5f5e132314794dbfdae5edecbccea292, < d6bc56ac75dfb6c02db2099909210a37c9be8db6 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-121808. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-121808.md Affected: elixir-grpc grpc >= 0.4.0, < 1.0.0; elixir-grpc grpc >= 25bcc569fe2cc4478531a6c546c923205fc751c9, < 0332faae5f5e132314794dbfdae5edecbccea292; elixir-grpc grpc_core >= 1.0.0, < 1.1.0; elixir-grpc grpc_core >= 0332faae5f5e132314794dbfdae5edecbccea292, < d6bc56ac75dfb6c02db2099909210a37c9be8db6 Fixed in: elixir-grpc grpc 1.0.0, elixir-grpc grpc 0332faae5f5e132314794dbfdae5edecbccea292, elixir-grpc grpc_core 1.1.0 Steps: 1. Search this machine and project for elixir-grpc grpc, elixir-grpc grpc_core: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
FAQ
Is CVE-2026-121808 being exploited?
There is no confirmed exploitation: CVE-2026-121808 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.59% chance of exploitation in the next 30 days (as of 2026-11-28).
How serious is CVE-2026-121808?
High: CVSS 8.2 (v4.0, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2026-121808?
elixir-grpc grpc >= 0.4.0, < 1.0.0; elixir-grpc grpc >= 25bcc569fe2cc4478531a6c546c923205fc751c9, < 0332faae5f5e132314794dbfdae5edecbccea292; elixir-grpc grpc_core >= 1.0.0, < 1.1.0; elixir-grpc grpc_core >= 0332faae5f5e132314794dbfdae5edecbccea292, < d6bc56ac75dfb6c02db2099909210a37c9be8db6.
Is there a fix for CVE-2026-121808?
Yes. Fixed in elixir-grpc grpc 1.0.0, elixir-grpc grpc 0332faae5f5e132314794dbfdae5edecbccea292, elixir-grpc grpc_core 1.1.0. Upgrade grpc to 1.0.0 or later. Upgrade grpc to 0332faae5f5e132314794dbfdae5edecbccea292 or later. Upgrade grpc_core to 1.1.0 or later. Vendor workaround: 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.
How do I check if I'm affected by CVE-2026-121808?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.
More elixir-grpc vulnerabilities
See all| Severity | Identifier / vulnerability | Technology | Signals | Age |
|---|---|---|---|---|
| HIGH 8.2 | CVE-2026-124279 Streaming request body limit enforced only after an 8 MB read in elixir-grpc grpc_server | elixir-grpc | EPSS 39% | |
| HIGH 8.2 | CVE-2026-121809 CPU exhaustion via a truncated gRPC message on streaming RPCs in elixir-grpc grpc_server | elixir-grpc | EPSS 42% | |
| HIGH 7.6 | CVE-2026-124278 Path bindings ignored for gRPC Content-Types on transcoded routes in elixir-grpc grpc_server | elixir-grpc | EPSS 39% | |
| MEDIUM 6.3 | CVE-2026-123635 Refused calls drain the HTTP/2 connection flow-control window in elixir-grpc grpc_server | elixir-grpc | EPSS 38% |