Skip to main content

elixir-grpc CVE-2026-121808

| EUVDEUVD-2026-125529 HIGH
Improper Handling of Highly Compressed Data (Data Amplification) (CWE-409)
2026-11-13 EEF
8.2
CVSS 4.0 · Vendor: EEF
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Send application/grpc+erlpack request (compressed flag 0)
  2. Exploit
    Codec passes body to :erlang.binary_to_term/2
  3. Execution
    Compressed term inflates far beyond request size
  4. Impact
    Node memory exhausted, all services on host degraded

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V2 - Validation and Business Logic Compression ratio limits
Exploitation Conditions

Exploitation requires the operator to have explicitly registered GRPC.Codec.Erlpack in the gRPC server's codecs list - this is NOT a default configuration, which is the primary limiting factor. Given that, no authentication is needed (PR:N) and no user interaction (UI:N): the attacker sends one request with Content-Type: application/grpc+erlpack and the gRPC compressed flag set to 0, so transport-level decompression limits do not apply and max_body_size only counts the compressed bytes, letting the compressed Erlang external term (version byte 131, tag 80) inflate inside :erlang.binary_to_term/2 before any size or type check. The [:safe] option does not bound decoded size. Defenders who do not register the Erlpack codec are not exposed; the documented workaround is to remove the codec or wrap it to reject bodies beginning with bytes 131, 80, but the complete fix is upgrading to grpc 1.0.0 or grpc_core 1.1.0.

Impact

This is a genuine but conditional availability risk, not a top-tier emergency. The CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:N/UI:N) scores 8.2 with impact confined to availability (VA:H; VC:N, VI:N). An unauthenticated network attacker can trigger it, but the AT:P (attack requirement present) metric reflects a hard precondition: the server must have explicitly registered GRPC.Codec.Erlpack in its codecs list, which the advisory confirms is not the default. No EPSS score and no CISA KEV status were provided in the input, so there is no signal of active or widespread exploitation; the vuln.today decision label is 'this_week' (not act_now/emergency), consistent with a patchable DoS rather than a drop-everything event. A detailed proof-of-concept (including exact payload construction and an observed 260,932-byte request inflating to 268,435,456 bytes against grpc_server 1.0.6) is published in the GHSA advisory, so the technical mechanism is fully confirmed - but the input does not mark exploit code as 'Publicly available (confirmed),' so this should be treated as a public PoC reference, not verified weaponized exploit code. Net: real priority for any Elixir/Erlang gRPC deployment that registers the erlpack codec; low real risk for the large majority of deployments that never enable it.

Exploit ScenarioDerived

An attacker sends a single uncompressed gRPC message with Content-Type: application/grpc+erlpack to any method of a server that registers the Erlpack codec, carrying a small (~255 KB) compressed Erlang external term that decodes to a ~256 MB binary. Because max_body_size counts only the compressed request bytes, the server passes the body to :erlang.binary_to_term/2, which inflates the full term before any type check runs, exhausting memory for every service on the node. A public PoC describing exact payload construction exists in the GHSA advisory, though it is not marked as verified working exploit code in the input.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.7% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 13, 2026

Memory exhaustion in the elixir-grpc Erlpack codec: when GRPC.Codec.Erlpack is explicitly registered on a server, an unauthenticated client can send a single request with Content-Type: application/grpc+erlpack whose body is a compressed Erlang external term, and the server allocates a decoded term hundreds of megabytes larger than the request. The vendor's test showed a 260,932-byte body inflating to a 268,435,456-byte binary that was handed to the application callback, so one request can exhaust memory for every service on the node. Exposure is conditional on the operator registering the Erlpack codec (it is not a default), which is the primary limiting factor; grpc 0.4.0 through 0.9.x and grpc_core 1.0.0 through 1.0.x are affected, fixed versions are grpc 1.0.0 and grpc_core 1.1.0, and the vendor advisory includes a reproducible proof-of-concept recipe while no separate, confirmed public exploit release was identified at time of analysis.

RemediationAI

Vendor-released patch: upgrade grpc to 1.0.0 and grpc_core to 1.1.0, which the advisory and the referenced fix commits (https://github.com/elixir-grpc/grpc/commit/0332faae5f5e132314794dbfdae5edecbccea292 and https://github.com/elixir-grpc/grpc/commit/d6bc56ac75dfb6c02db2099909210a37c9be8db6) present as the complete fix; per the advisory, updating is the only complete remediation. If upgrading cannot be done immediately, remove GRPC.Codec.Erlpack from the server's codecs list if the codec is not needed - the trade-off is that clients sending application/grpc+erlpack will no longer be served. If the codec is required, register a wrapper codec that implements the GRPC.Codec behaviour, returns "erlpack" from name/0, raises in decode/2 when the body begins with the bytes 131, 80 (the compressed-term tag), and delegates all other calls to GRPC.Codec.Erlpack; the trade-off is that all legitimately compressed Erlpack messages are rejected while uncompressed terms continue to be accepted. Full details are in the advisory at https://github.com/elixir-grpc/grpc/security/advisories/GHSA-xxp9-7hp4-rqwp.

Affected VersionsENISA

gRPC 0.4.0 <1.0.0
grpc_core 1.0.0 <1.1.0
gRPC 25bcc569fe2cc4478531a6c546c923205fc751c9 <0332faae5f5e132314794dbfdae5edecbccea292
grpc_core 0332faae5f5e132314794dbfdae5edecbccea292 <d6bc56ac75dfb6c02db2099909210a37c9be8db6

Affected Packages

euvd grpc fix: 1.0.0
euvd grpc_core fix: 1.1.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

elixir-grpc selects its message codec from the request Content-Type header, so a request carrying application/grpc+erlpack is routed to GRPC.Codec.Erlpack.decode/2 (grpc_core/lib/grpc/codec/erlpack.ex, and lib/grpc/codec/erlpack.ex before the package split), which simply calls :erlang.binary_to_term(binary, [:safe]). The Erlang external term format has a compressed representation: version byte 131, tag 80, a 32-bit uncompressed size field, then a zlib stream; binary_to_term/2 inflates that stream in full before returning, and the :safe option constrains which term types may be produced, not the decoded size. The codec's type validation (ensure_safe_term!/1) only runs on the already-inflated term, so there is no ceiling on allocation. The server's max_body_size limit is enforced on bytes received over the wire, and because the gRPC compressed flag is set to 0 in the attack, transport-level decompression limits never come into play and the payload reaches the codec unchanged. CWE-409 (Improper Handling of Highly Compressed Data / Data Amplification) is the root-cause class: a small attacker-controlled input expands to a resource-consuming object with no post-inflation accounting. The flaw was introduced with the codec abstraction commit 25bcc56 and is addressed by commits 0332faa and d6bc56a.

Know when Grpc gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (EEF) PRIMARY 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
vuln.today AI 7.5 HIGH

Unauthenticated single-request network DoS with trivial execution once the optional erlpack codec is registered (AV:N/AC:L/PR:N); impact is availability-only, so C:N/I:N/A:H.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (EEF).

CVSS VectorVendor: EEF

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

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.

Technical POC Analysis

CWE-409, Improper Handling of Highly Compressed Data (data amplification).

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

CVE-2026-121808 is a high-severity memory exhaustion vulnerability in the elixir-grpc library's Erlpack codec, where a single unauthenticated request can allocate hundreds of megabytes on the server. Organizations using affected grpc versions (0.4.0 through 1.0.0 and 1.0.0 through 1.0.x of grpc_core) and explicitly registering the Erlpack codec are at risk of service disruption for all applications on the node. Leadership should prioritize patching because a single small request can quickly exhaust memory and cause downtime, though the vulnerability is only exploitable when the non-default Erlpack codec is enabled.

Business Impact: High
Compensating Controls

Apply vendor patch. If patching is delayed, disable the Erlpack codec or block requests with Content-Type: application/grpc+erlpack at the network perimeter or reverse proxy.

Threat Intelligence Overview

EPSS Score
0.7%
Top 46% exploitable
Prevalence
Low
Elixir/Erlang-only gRPC library in a niche language ecosystem
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.7%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

42
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +41
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

More in Grpc

View all
CVE-2023-44487 HIGH POC
7.5 Oct 10

Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour

CVE-2017-8359 CRITICAL POC
9.8 Apr 30

Google gRPC before 2017-03-29 has an out-of-bounds write caused by a heap-based use-after-free related to the grpc_call_

CVE-2026-48853 CRITICAL POC
9.2 Jun 15

Unsafe Erlang term deserialization in the elixir-grpc library (versions 0.4.0 through 1.0.0) allows unauthenticated remo

CVE-2026-84304 HIGH POC
8.7 Sep 01

Memory exhaustion in gRPC-Go before version 1.83.1 allows an unauthenticated remote attacker to crash any service built

CVE-2026-53430 HIGH POC
8.7 Jun 15

Denial of service in the elixir-grpc library (versions 0.4.0 through 0.x) allows unauthenticated remote attackers to cra

CVE-2026-48854 HIGH POC
8.7 Jun 15

Unauthenticated denial of service in the elixir-grpc library (versions 0.3.1 up to but not including 1.0.0) allows a sin

CVE-2026-48599 HIGH POC
7.6 Jun 15

Authorization bypass in elixir-grpc (grpc library for Elixir) versions 0.8.0 through 0.x allows authenticated attackers

CVE-2026-101914 MEDIUM POC
6.5 Sep 28

Authorization bypass in the @grpc/grpc-js-xds package (the xDS/RBAC extension for @grpc/grpc-js) lets a request for one

CVE-2024-7246 MEDIUM POC
6.3 Aug 06

It's possible for a gRPC client communicating with a HTTP/2 proxy to poison the HPACK table between the proxy and the ba

CVE-2017-7860 CRITICAL
9.8 Apr 14

Google gRPC before 2017-02-22 has an out-of-bounds write caused by a heap-based buffer overflow related to the parse_uni

CVE-2017-7861 CRITICAL
9.8 Apr 14

Google gRPC before 2017-02-22 has an out-of-bounds write related to the gpr_free function in core/lib/support/alloc.c. R

CVE-2017-9431 CRITICAL
9.8 Jun 05

Google gRPC before 2017-04-05 has an out-of-bounds write caused by a heap-based buffer overflow related to core/lib/iomg

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy