Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend application/grpc+erlpack request (compressed flag 0)
-
ExploitCodec passes body to :erlang.binary_to_term/2
-
ExecutionCompressed term inflates far beyond request size
-
ImpactNode 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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.
Primary rating from Vendor (EEF).
CVSS VectorVendor: EEF
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
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour
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_
Unsafe Erlang term deserialization in the elixir-grpc library (versions 0.4.0 through 1.0.0) allows unauthenticated remo
Memory exhaustion in gRPC-Go before version 1.83.1 allows an unauthenticated remote attacker to crash any service built
Denial of service in the elixir-grpc library (versions 0.4.0 through 0.x) allows unauthenticated remote attackers to cra
Unauthenticated denial of service in the elixir-grpc library (versions 0.3.1 up to but not including 1.0.0) allows a sin
Authorization bypass in elixir-grpc (grpc library for Elixir) versions 0.8.0 through 0.x allows authenticated attackers
Authorization bypass in the @grpc/grpc-js-xds package (the xDS/RBAC extension for @grpc/grpc-js) lets a request for one
It's possible for a gRPC client communicating with a HTTP/2 proxy to poison the HPACK table between the proxy and the ba
Google gRPC before 2017-02-22 has an out-of-bounds write caused by a heap-based buffer overflow related to the parse_uni
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
Google gRPC before 2017-04-05 has an out-of-bounds write caused by a heap-based buffer overflow related to core/lib/iomg
EUVD-2026-125529
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB