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

- Severity: High 8.2 (CVSS:4.0, scored by EEF) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.62%, higher than 50% of CVEs (2026-12-01)
- Published: 2026-11-13T15:48:49.871Z
- Modified: 2026-11-25T17:23:05.311Z
- Also known as: EEF-CVE-2026-121808, GHSA-xxp9-7hp4-rqwp
- Weaknesses: CWE-409
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: EEF

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

(As written by CVE List.)

## Affected

- grpc: from 0.4.0 before 1.0.0
- elixir-grpc/grpc: from 25bcc569fe2cc4478531a6c546c923205fc751c9 before 0332faae5f5e132314794dbfdae5edecbccea292; from 0332faae5f5e132314794dbfdae5edecbccea292 before d6bc56ac75dfb6c02db2099909210a37c9be8db6
- grpc_core: from 1.0.0 before 1.1.0
- grpc (Hex): from 0.4.0 before 1.0.0
- grpc_core (Hex): from 1.0.0 before 1.1.0
- https://github.com/elixir-grpc/grpc: from 25bcc569fe2cc4478531a6c546c923205fc751c9 before 0332faae5f5e132314794dbfdae5edecbccea292; from 0332faae5f5e132314794dbfdae5edecbccea292 before d6bc56ac75dfb6c02db2099909210a37c9be8db6

## Every score

- EEF: CVSS:4.0 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`
- Erlang Ecosystem Foundation: CVSS:4.0 `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`

## References

- <https://github.com/elixir-grpc/grpc/security/advisories/GHSA-xxp9-7hp4-rqwp> (advisory, related, vendor-advisory)
- <https://cna.erlef.org/cves/CVE-2026-121808.html> (related, web)
- <https://osv.dev/vulnerability/EEF-CVE-2026-121808> (related)
- <https://github.com/elixir-grpc/grpc/commit/25bcc569fe2cc4478531a6c546c923205fc751c9> (related, web)
- <https://github.com/elixir-grpc/grpc/commit/0332faae5f5e132314794dbfdae5edecbccea292> (fix, patch)
- <https://github.com/elixir-grpc/grpc/commit/d6bc56ac75dfb6c02db2099909210a37c9be8db6> (fix, patch)
- <https://hex.pm/packages/grpc> (package)
- <https://hex.pm/packages/grpc_core> (package)

## Sources

- CVE List: [CVE-2026-121808](https://www.cve.org/CVERecord?id=CVE-2026-121808), CVE Terms of Use, modified 2026-11-20
- Erlang Ecosystem Foundation: [EEF-CVE-2026-121808](https://osv.dev/vulnerability/EEF-CVE-2026-121808), CC-BY-4.0, modified 2026-11-25
- NVD: [CVE-2026-121808](https://nvd.nist.gov/vuln/detail/CVE-2026-121808), Public domain, modified 2026-11-23

---

Page: https://cve.day/CVE-2026-121808 · Whole record: https://cve.day/CVE-2026-121808.json · Rebuilt by cve.day 2026-11-25T22:59:50.733Z
