Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify exposed Elixir gRPC endpoint
-
DeliveryCraft tiny gzip bomb of zeros
-
ExploitOpen HTTP/2 stream with grpc-encoding: gzip
-
ExecutionSend single compressed frame
-
PersistTrigger unbounded :zlib.gunzip allocation
-
ImpactBEAM node OOM-killed, service unavailable
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V2 - Validation and Business Logic Compression ratio limits
|
| Exploitation Conditions | Target must run elixir-grpc grpc 0.4.0 through pre-1.0.0 with the default gzip compressor registered (this is the out-of-box configuration - no special enablement needed) and must accept gRPC traffic from the attacker's network position. Exploitation requires only that the attacker can send a single gRPC frame with the grpc-encoding: gzip header set; no authentication, no user interaction, and no prior knowledge of service methods are required. The only meaningful limits are network reachability to the gRPC port and the absence of an upstream proxy that strips gzip encoding or enforces decompressed-size accounting; the existing max_receive_message_length setting provides no protection because it is checked post-decompression. |
| Impact | The CVSS 4.0 vector AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N (score 8.7 High) accurately reflects an unauthenticated, network-reachable, single-packet DoS with no confidentiality or integrity impact. No EPSS score or KEV listing was provided, and no public PoC is referenced, so the issue currently rates as 'no public exploit identified at time of analysis'; however, the patch commit ships an explicit test that builds a working bomb (9 MB of zeros gzipped) in a handful of lines, meaning a functional exploit is trivial to reconstruct from the public diff. SSVC-wise this looks Automatable=yes, Technical Impact=partial (availability of the BEAM node only) - a meaningful concern for any production Elixir gRPC server exposed to untrusted peers, but not a confidentiality/integrity escalation. Priority should be elevated for internet-facing services or multi-tenant clusters where a single OOM crash translates to noisy-neighbor or full outage; lower for internal-only services behind authenticated mesh ingress. No conflicts between signals were observed. |
| Exploit ScenarioDerived | An attacker reaches any internet-exposed Elixir gRPC endpoint, opens an HTTP/2 stream, sets the grpc-encoding: gzip header, and sends a single message frame containing a few kilobytes of zeros pre-compressed with gzip. The receiving BEAM node calls :zlib.gunzip/1, allocates multiple gigabytes on the heap in one shot, and is OOM-killed before max_receive_message_length is ever consulted; repeating the request keeps the service unavailable. The vendor's patch test (9 MB bomb from :binary.copy(<<0>>, bomb_size)) effectively serves as a reproducer. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 15, 2026
Denial of service in the elixir-grpc library (versions 0.4.0 through 0.x) allows unauthenticated remote attackers to crash BEAM nodes via a gzip decompression bomb. The GRPC.Compressor.Gzip module calls :zlib.gunzip/1 directly on attacker-controlled bytes without size limits, ratio checks, or incremental decoding, so a single small frame carrying the grpc-encoding: gzip header expands to multi-gigabyte allocations and triggers OOM kills. No public exploit identified at time of analysis, but a vendor patch is available in version 1.0.0.
RemediationAI
Vendor-released patch: upgrade elixir-grpc grpc to version 1.0.0 or later, which rewrites GRPC.Compressor.Gzip.decompress/1 to use :zlib.inflateInit with windowBits 31 and feeds the compressed input in 8 KB slices, aborting with GRPC.RPCError status :resource_exhausted as soon as the decompressed accumulator exceeds the limit (default 4 MB, matching gRPC-Go); the limit is tunable via Application.put_env(:grpc, :max_decompressed_message_length, bytes). The fix commit is https://github.com/elixir-grpc/grpc/commit/1afbab9d57d2a3e16ca9c62ffa4923338ea96cfc and the full advisory is at https://github.com/elixir-grpc/grpc/security/advisories/GHSA-6ccx-9c9f-327w. If immediate upgrade is not possible, compensating controls include stripping or rejecting the grpc-encoding: gzip header at an upstream proxy (Envoy, nginx, or a service mesh sidecar) so frames never reach the Elixir decoder - this disables legitimate gzip compression and increases bandwidth use - or fronting the service with a WAF/proxy that enforces a strict pre-decompression frame size cap (note that small bombs still slip under any reasonable cap, so this is partial mitigation only). Restricting gRPC ingress to authenticated/mTLS peers reduces exposure but does not eliminate it where authenticated clients are themselves untrusted.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package 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 is the de-facto gRPC implementation for the Elixir/Erlang ecosystem, running on the BEAM virtual machine. The vulnerability sits in lib/grpc/compressor/gzip.ex within the 'Elixir.GRPC.Compressor.Gzip':decompress/1 routine, which is the registered handler for the grpc-encoding: gzip header and is therefore invoked automatically by lib/grpc/message.ex's 'Elixir.GRPC.Message':from_data/2 whenever a peer advertises gzip compression. The root cause is CWE-409 (Improper Handling of Highly Compressed Data, a.k.a. data amplification / zip bomb). :zlib.gunzip/1 is a one-shot Erlang built-in that materializes the entire decompressed output as a single binary on the process heap, with no streaming or upper bound. Gzip's DEFLATE algorithm routinely achieves ~1000:1 ratios on runs of zeros, so a few kilobytes inflate to multi-gigabyte allocations. The max_receive_message_length guard is applied to the already-decompressed payload, so it is structurally incapable of preventing this allocation. CPE coverage is cpe:2.3:a:elixir-grpc:grpc:*:*:*:*:*:*:*:*.
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:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Single unauthenticated network frame with gzip header triggers OOM on the BEAM node, so AV:N/AC:L/PR:N/UI:N and availability-only impact A:H with C:N/I:N.
Primary rating from Vendor (EEF).
CVSS VectorVendor: EEF
DescriptionCVE.org
Improper Handling of Highly Compressed Data (Data Amplification) vulnerability in elixir-grpc grpc (GRPC.Compressor.Gzip, GRPC.Message modules) allows a denial of service via a gzip decompression bomb.
This vulnerability is associated with program files lib/grpc/compressor/gzip.ex, lib/grpc/message.ex and program routines 'Elixir.GRPC.Compressor.Gzip':decompress/1, 'Elixir.GRPC.Message':from_data/2.
'Elixir.GRPC.Compressor.Gzip':decompress/1 calls :zlib.gunzip/1 directly on attacker-controlled bytes with no decompressed-size limit, ratio check, or incremental decoding. Because this module is the registered gzip GRPC.Compressor implementation, it is invoked automatically whenever an incoming gRPC frame carries the grpc-encoding: gzip header. :zlib.gunzip/1 allocates the entire decompressed result as a single binary, so a small highly compressible payload (for example a few kilobytes of zeros, which gzip compresses at roughly 1000:1) expands to multiple gigabytes inside a single call. The max_receive_message_length limit is enforced only against the already-decompressed message, so it provides no protection. An unauthenticated remote peer can send a single crafted frame to exhaust the BEAM node's heap and trigger an out-of-memory kill.
This issue affects grpc: from 0.4.0 before 1.0.0.
Executive ViewAI
The elixir-grpc library contains a critical denial-of-service vulnerability allowing unauthenticated attackers to crash production service instances through specially crafted gzip-compressed requests. Organizations using this library for gRPC services face immediate risk of service outages from trivial network attacks. A vendor patch is available in version 1.0.0 and deployment should begin within 24 hours.
Apply vendor patch.
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
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
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
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
The package grpc before 1.24.4; the package @grpc/grpc-js before 1.1.8 are vulnerable to Prototype Pollution via loadPac
EUVD-2026-37014
GHSA-6ccx-9c9f-327w
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB