CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



CVE-2026-53430

CVE-2026-53430: Unauthenticated Remote Denial of Service via Gzip Decompression Bomb in elixir-grpc/grpc

Alon Barad
Alon Barad
Software Engineer

Aug 26, 2026·7 min read·74 visits

Executive Summary (TL;DR)

Unauthenticated remote attackers can crash Elixir-based gRPC servers by sending a small, highly compressed Gzip payload that expands to multiple gigabytes, triggering an Out-Of-Memory crash.

CVE-2026-53430 is a critical uncontrolled resource consumption vulnerability in the elixir-grpc/grpc library. An unauthenticated remote attacker can cause immediate memory exhaustion and system crashes by sending crafted gRPC frames compressed with Gzip, leading to a complete Denial of Service.

Vulnerability Overview

The elixir-grpc/grpc library is a widely used implementation of the gRPC protocol for the Elixir programming language, running on the Erlang Virtual Machine (BEAM). In versions prior to 1.0.0, the package exposes an unauthenticated attack surface through its default handling of Gzip-compressed messages. When a gRPC service endpoint receives an incoming HTTP/2 request with the grpc-encoding: gzip header, it processes the payload using the GRPC.Compressor.Gzip module to decompress the content.

This vulnerability is classified under CWE-409: Improper Handling of Highly Compressed Data (Data Amplification), commonly known as a Gzip decompression bomb. The bug is located in the decompression phase of the gRPC message pipeline, which operates prior to length validation. Because the framework does not check the output boundaries during the decompression phase, an unauthenticated remote attacker can trigger unbounded memory allocation, crashing the target server.

The impact of this flaw is a complete and immediate Denial of Service (DoS) of the affected Elixir application node. The vulnerability does not require valid credentials, session tokens, or any specific application-state prerequisites. Any gRPC service using the default Gzip compressor component is vulnerable to this attack vector.

Root Cause Analysis

The root cause of CVE-2026-53430 resides in the naive implementation of the decompress/1 function in lib/grpc/compressor/gzip.ex. This function accepts an incoming binary payload and passes it directly to Erlang's :zlib.gunzip/1 function. The :zlib.gunzip/1 function is a one-shot, non-incremental wrapper around the zlib library. It allocates the memory required to decompress the entire input stream in a single blocking operation.

This design allows for a significant data amplification ratio, where repetitive sequences compress highly efficiently. For example, a payload containing consecutive zero bytes can achieve a compression ratio of approximately 1032:1 under the DEFLATE algorithm. Under these conditions, an attacker can package a compressed block of multiple gigabytes into a transport payload of a few megabytes. When the BEAM node executes :zlib.gunzip/1, it attempts to allocate a continuous segment of heap memory large enough to hold the fully expanded, uncompressed output.

Standard gRPC protective measures like max_receive_message_length fail to prevent this exploitation. The gRPC protocol engine evaluates the incoming message size limits only after the binary payload has been fully decoded and decompressed. Because the decompression process occurs within the stateful compressor layer before the framework performs the length validation, the system consumes excessive physical memory and crashes before the framework can reject the oversized message.

Code Analysis

In the vulnerable version of the library, the decompression code was written as a direct wrapper around Erlang's zlib module:

defmodule GRPC.Compressor.Gzip do
  @behaviour GRPC.Compressor
 
  def name, do: "gzip"
 
  def compress(data) do
    :zlib.gzip(data)
  end
 
  # VULNERABLE: Direct, unbounded decompression in a single step
  def decompress(data) do
    :zlib.gunzip(data)
  end
end

The vulnerability is mitigated by replacing this single-pass decompression with an incremental, chunk-based decompression loop. The fix, implemented in commit 1afbab9d57d2a3e16ca9c62ffa4923338ea96cfc, processes the compressed payload in recursive 8 KB chunks and monitors the cumulative decompressed output size dynamically:

defmodule GRPC.Compressor.Gzip do
  @behaviour GRPC.Compressor
 
  # Enforces a 4 MB maximum limit by default
  @default_max_decompressed_size 4 * 1024 * 1024
  @input_chunk_size 8_192
 
  def decompress(data) do
    max_size = Application.get_env(:grpc, :max_decompressed_message_length, @default_max_decompressed_size)
    z = :zlib.open()
    # Window bits value of 31 configures zlib for gzip parsing
    :ok = :zlib.inflateInit(z, 31)
 
    try do
      chunks = inflate_chunks(z, data, max_size, 0, [])
      :zlib.inflateEnd(z)
      IO.iodata_to_binary(chunks)
    after
      # Ensures resource cleanup to prevent port leaks
      :zlib.close(z)
    end
  end
 
  defp inflate_chunks(_z, <<>>, _max_size, _acc_size, acc), do: acc
 
  defp inflate_chunks(z, data, max_size, acc_size, acc) do
    {chunk, rest} = split_chunk(data)
    output = :zlib.inflate(z, chunk)
    new_size = acc_size + IO.iodata_length(output)
 
    # Dynamic size verification checks limit before inflating the next chunk
    if new_size > max_size do
      raise GRPC.RPCError,
        status: :resource_exhausted,
        message: "Decompressed message exceeds limit of #{max_size} bytes"
    end
 
    inflate_chunks(z, rest, max_size, new_size, [acc, output])
  end
 
  defp split_chunk(data) when byte_size(data) <= @input_chunk_size, do: {data, <<>>}
  defp split_chunk(<<chunk::bytes-size(@input_chunk_size), rest::binary>>), do: {chunk, rest}
end

By using the stateful :zlib.inflate/2 API, the patched version guarantees that memory allocation remains bounded. If the uncompressed output exceeds the preconfigured threshold, the function raises an exception and interrupts the operation, limiting resource utilization to the specified threshold.

Exploitation Methodology

An attacker can exploit this vulnerability by generating a highly compressed file consisting of repeated characters, typically zero bytes. The generation of a Gzip decompression bomb can be executed with standard command-line tools:

dd if=/dev/zero bs=1M count=4096 | gzip -9 > bomb.gzip

This command produces a compressed file of approximately 4 MB that decompresses into 4 GB of data. The attacker then encapsulates this file within a standard gRPC length-prefixed frame. This frame structure requires a 1-byte compression flag set to 1, a 4-byte big-endian field denoting the compressed size, and the compressed payload itself.

To complete the attack, the adversary initiates an HTTP/2 connection to the server and transmits the payload inside an HTTP/2 DATA frame. The companion HTTP/2 HEADERS frame must contain the grpc-encoding: gzip and content-type: application/grpc headers. Once received, the Cowboy handler passes the payload directly to the decompression function, exhausting system memory and causing the node to crash.

Impact Assessment

The security impact of CVE-2026-53430 is a severe Denial of Service. Because the Erlang Virtual Machine allocates memory dynamically on the process heap, an expansion of several gigabytes of data triggers a rapid exhaustion of system RAM. When the allocation exceeds the physical memory limits of the server host or container, the operating system kernel's Out-Of-Memory (OOM) killer intervenes and terminates the entire BEAM process immediately.

This termination results in the loss of all active connections, processing queues, and state within that VM instance. In clustered configurations, the loss of a node can cause cascade failures across remaining nodes if traffic is redirected without strict rate limiting. While Kubernetes or similar orchestrators may restart the terminated container automatically, an attacker can send decompression bombs continuously to keep the service in an ongoing crash loop.

The vulnerability is assessed with a CVSS 4.0 score of 8.7. The attack is executable entirely over the network, requires no system access privileges, demands no user interaction, and has low technical complexity. The subsequent impacts on data confidentiality and integrity are ranked as none, as the bug does not allow for arbitrary code execution or unauthorized read actions.

Remediation & Mitigation Options

The primary remediation strategy is upgrading the Elixir gRPC dependencies to version 1.0.0 or later. Starting with version 1.0.0-rc.1, the library has been split into individual packages. Applications running a gRPC server must replace the legacy :grpc dependency with the new :grpc_server package inside their mix.exs configuration:

def deps do
  [
    {:grpc_server, "~> 1.0"},
    {:protobuf, "~> 0.14"}
  ]
end

If an immediate upgrade is not feasible, administrators can apply network-level mitigations at the API gateway or load balancer layer. For instance, reverse proxies such as Envoy or NGINX can be configured to restrict the maximum allowed size of incoming HTTP/2 request bodies. Restricting the request size to a low threshold (e.g., 1 MB) reduces the maximum payload size an attacker can transmit, mitigating the severity of the amplification ratio.

Additionally, operations teams can configure the :max_decompressed_message_length parameter in their Elixir application configuration files to fine-tune the threshold. Setting this value to match application-specific limits prevents unnecessary memory allocation:

# Set the maximum allowed decompressed payload size to 2 MB
config :grpc, max_decompressed_message_length: 2 * 1024 * 1024

Official Patches

elixir-grpcFix decompression vulnerability by processing streams in chunks and validating decompressed size dynamically.

Fix Analysis (1)

Technical Appendix

CVSS Score
8.7/ 10
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
EPSS Probability
0.35%
Top 73% most exploited

Affected Systems

elixir-grpc/grpc (Hex package 'grpc')

Affected Versions Detail

Product
Affected Versions
Fixed Version
grpc
elixir-grpc
>= 0.4.0, < 1.0.01.0.0
AttributeDetail
CWE IDCWE-409
Attack VectorNetwork
CVSS 4.0 Score8.7
EPSS Score0.00348 (0.35% exploitation probability)
ImpactComplete Denial of Service (OOM Crash)
Exploit StatusProof-of-Concept Available
KEV StatusNot Listed

MITRE ATT&CK Mapping

T1499.005Endpoint Denial of Service: Resource Exhaustion
Denial of Service
CWE-409
Improper Handling of Highly Compressed Data (Data Amplification)

The product does not limit or properly validate the size of highly compressed input data before or during decompression, enabling a dramatic amplification of data size in memory.

Known Exploits & Detection

GitHubReproduction test cases verifying resource exhaustion behavior on decompression bombs are implemented in the official test framework.

Vulnerability Timeline

Naive Gzip decompression added via commit beae6800fc8baf126f3fe7107d86a50e105275ba
2019-05-21
Library refactoring starts
2025-12-02
Vulnerability identified by Peter Ullrich
2026-06-15
Patch authored and committed by Paulo Valente
2026-06-15
Advisory published under ID CVE-2026-53430
2026-06-15
NVD and CVE databases updated
2026-06-17

References & Sources

  • [1]Official Erlef Advisory Page
  • [2]GitHub Security Advisory (GHSA-6ccx-9c9f-327w)
  • [3]Official Fix Commit
  • [4]OSV Vulnerability Entry
  • [5]MITRE CVE Record
  • [6]NIST National Vulnerability Database

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•2 minutes ago•GHSA-CX3C-RMCX-FF35
5.9

GHSA-cx3c-rmcx-ff35: Metadata Partition-Key Collisions in OpenTelemetry Collector exporterhelper

An improper data encoding vulnerability (CWE-172) exists in the OpenTelemetry Collector exporterhelper package between versions 0.147.0 and 0.163.x. When metadata-partitioned batching is enabled with multiple metadata keys, the partition key generator uses an unescaped null byte delimiter to concatenate key names and multi-valued header arrays. An authenticated attacker capable of sending multi-valued HTTP or gRPC headers to an ingress receiver can induce partition key collisions, causing cross-tenant telemetry data mixture, data poisoning, or unauthorized data exfiltration.

Alon Barad
Alon Barad
1 views•10 min read
•about 1 hour ago•CVE-2026-137187
5.4

CVE-2026-137187: Fail-Open Project Allowlist Authorization Bypass in @zereight/mcp-gitlab

CVE-2026-137187 (GHSA-5xhm-p3jx-2fmc) is a missing authorization vulnerability (CWE-862) in @zereight/mcp-gitlab affecting versions 2.2.5 through 2.3.6. The flaw exists within the gitlab_api_request tool, where project allowlist enforcement fails open when evaluating API paths that do not conform to the /projects/:id pattern or when following HTTP redirects to an empty relative path. Attackers or compromised LLM agents with access to the api toolset can bypass project isolation boundaries to query or modify group, user, and instance-level GitLab resources permitted by the server's underlying authentication token.

Alon Barad
Alon Barad
5 views•10 min read
•about 3 hours ago•GHSA-R73Q-GWX2-FPXM
6.8

GHSA-r73q-gwx2-fpxm: Arbitrary Host Directory Mount and Sandbox Bypass via Theme Module Replacements in Hugo

Hugo versions 0.152.0 through 0.167.x contain a path traversal and sandbox bypass vulnerability in the module configuration loader. When a root project does not define module replacements, Hugo permits imported themes or modules to define their own module.replacements directives. Because replaced module imports are internally marked as project-replaced, they bypass theme directory path restrictions, allowing an untrusted theme to mount arbitrary host filesystem directories and expand the Node.js read sandbox.

Amit Schendel
Amit Schendel
5 views•10 min read
•about 4 hours ago•CVE-2026-135388
9.1

CVE-2026-135388: Cryptographic Signature Verification Bypass in Pion DTLS

CVE-2026-135388 (GHSA-7c2r-jhm9-43vf) is an improper verification of cryptographic signature vulnerability (CWE-347) in Pion DTLS, a pure Go implementation of Datagram Transport Layer Security (RFC 6347). The vulnerability stems from signature scheme confusion and missing cryptographic parameter binding in the handshake verification functions verifyKeySignature and verifyCertificateVerify. By presenting a genuine peer certificate paired with an incompatible or digest-less signature hash algorithm on the wire, an unauthenticated network adversary can bypass signature verification without possessing the peer's private key. This allows peer impersonation and full compromise of confidentiality and integrity in DTLS-protected channels, including WebRTC sessions utilizing SDP certificate fingerprint verification.

Alon Barad
Alon Barad
6 views•10 min read
•about 5 hours ago•CVE-2026-134024
6.8

CVE-2026-134024: Latent Server-Side Request Forgery Gadget in TastyIgniter Media Attachment Handler

CVE-2026-134024 is a Server-Side Request Forgery (SSRF) vulnerability (CWE-918) in the TastyIgniter open-source restaurant management platform prior to version 4.4.4. The flaw resides in the Media::addFromUrl() helper method within the tastyigniter/core package, which initiates outbound HTTP GET requests to caller-supplied URLs and persists the response body without validating the URI scheme, target hostname, or resolved IP address. Although unreachable in a default unextended installation, the method functions as a latent SSRF gadget that exposes the host environment to internal network reconnaissance and cloud metadata extraction when invoked by third-party extensions or custom application code.

Alon Barad
Alon Barad
5 views•10 min read
•about 6 hours ago•CVE-2026-61832
7.5

CVE-2026-61832: Improper Certificate Validation and Insecure Deserialization in NukeViet CMS

CVE-2026-61832 is a compound vulnerability in NukeViet CMS versions prior to 4.6.00 resulting from disabled TLS certificate validation (CWE-295) in internal HTTP clients and unrestricted PHP deserialization (CWE-502) in administrative extension store handlers. An adversary-in-the-middle (AiTM) attacker can intercept outbound HTTPS connections to the NukeViet extension store API and inject a crafted serialized PHP object. When an administrator interacts with the extension store, the application deserializes the response, triggering an in-tree Property-Oriented Programming (POP) gadget chain in Guzzle to achieve arbitrary file write and remote code execution.

Amit Schendel
Amit Schendel
6 views•10 min read