Skip to content

CVE-2026-53430 grpc gzip decompression bomb in GRPC.Compressor.Gzip.decompress/1

HighCVSS 8.7 EPSS 0.43%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: yes · technical impact: partial

Description

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 GRPC.Compressor.Gzip.decompress/1, GRPC.Message.from_data/2.

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; grpc_core: from 1.0.0-alfa before 1.0.0.

Upgrade path

2 packages: 2 fixed.

PackageAffectedFixed inStatus
elixir-grpc grpc >= 0.4.0, < 1.0.0; >= 1.0.0-alfa, < 1.0.0; >= beae6800fc8baf126f3fe7107d86a50e105275ba, < 1afbab9d57d2a3e16ca9c62ffa4923338ea96cfc 1.0.0, 1afbab9d57d2a3e16ca9c62ffa4923338ea96cfc Fixed
hex grpc(Hex) >= 0.4.0, < 1.0.0 1.0.0 Fixed

Affected products

ProductAffected versionsFixed in
hex grpc(Hex) >= 0.4.0, < 1.0.0 1.0.0
elixir-grpc grpc >= 0.4.0, < 1.0.0 1.0.0
elixir-grpc grpc >= 1.0.0-alfa, < 1.0.0 1.0.0
elixir-grpc grpc >= beae6800fc8baf126f3fe7107d86a50e105275ba, < 1afbab9d57d2a3e16ca9c62ffa4923338ea96cfc 1afbab9d57d2a3e16ca9c62ffa4923338ea96cfc

References