# CVE-2026-121808: Memory exhaustion via compressed Erlang terms in the elixir-grpc Erlpack codec

- **Severity:** HIGH 8.2
- **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:N`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.59% (percentile 42, 2026-11-28)
- **CWE:** CWE-409
- **Published:** 2026-11-13T15:48:49.871Z
- **Modified:** 2026-11-23T15:08:56.100Z

## 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

## 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

- 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)

## 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.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- vendor: <https://github.com/elixir-grpc/grpc/security/advisories/GHSA-xxp9-7hp4-rqwp>
- patch: <https://github.com/elixir-grpc/grpc/commit/25bcc569fe2cc4478531a6c546c923205fc751c9>
- patch: <https://github.com/elixir-grpc/grpc/commit/0332faae5f5e132314794dbfdae5edecbccea292>
- patch: <https://github.com/elixir-grpc/grpc/commit/d6bc56ac75dfb6c02db2099909210a37c9be8db6>
- other: <https://cna.erlef.org/cves/CVE-2026-121808.html>
- other: <https://osv.dev/vulnerability/EEF-CVE-2026-121808>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-121808>
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

HTML: <https://flawdb.com/CVE-2026-121808> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-121808>
