{"id":"CVE-2026-48854","aliases":["CVE-2026-48854","GHSA-q8gf-9rvj-gmgj","EEF-CVE-2026-48854"],"related":[],"kind":"vulnerability","state":"published","title":"Unbounded request body accumulation causes memory exhaustion in elixir-grpc/grpc","summary":"Allocation of Resources Without Limits or Throttling vulnerability in elixir-grpc grpc allows unauthenticated attackers to exhaust the BEAM's memory and crash the server by streaming a large or slow-trickle unary request body.\n\n'Elixir.GRPC.Server.Adapters.Cowboy.Handler':read_full_body/3 (lib/grpc/server/adapters/cowboy/handler.ex) accumulates every received chunk into a single growing binary with no size cap. Additionally, when the client omits the grpc-timeout header, the per-chunk read timeout resolves to :infinity, allowing a slow-trickle client to keep the connection alive indefinitely while memory grows. A single connection is sufficient to exhaust server memory and crash the node.\n\nThis issue affects grpc: from 0.3.0-alpha.2 before 1.0.0.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Allocation of Resources Without Limits or Throttling vulnerability in elixir-grpc grpc allows unauthenticated attackers to exhaust the BEAM's memory and crash the server by streaming a large or slow-trickle unary request body.\n\n'Elixir.GRPC.Server.Adapters.Cowboy.Handler':read_full_body/3 (lib/grpc/server/adapters/cowboy/handler.ex) accumulates every received chunk into a single growing binary with no size cap. Additionally, when the client omits the grpc-timeout header, the per-chunk read timeout resolves to :infinity, allowing a slow-trickle client to keep the connection alive indefinitely while memory grows. A single connection is sufficient to exhaust server memory and crash the node.\n\nThis issue affects grpc: from 0.3.0-alpha.2 before 1.0.0.","source":"cvelist"},{"lang":"en","text":"### Summary\n\n`'Elixir.GRPC.Server.Adapters.Cowboy.Handler':read_full_body/3` accumulates every received chunk into a single growing binary with no size cap. When the client omits the `grpc-timeout` header, the read timeout resolves to `:infinity`, allowing a slow-trickle attacker to hold the connection open indefinitely while memory grows. A single unauthenticated connection is sufficient to exhaust BEAM memory and crash the node.\n\n### Details\n\nThe read loop in `lib/grpc/server/adapters/cowboy/handler.ex` calls `:cowboy_req.read_body/2` in a recursive loop, concatenating each chunk: `body <> data`. There is no running-total check and no configurable maximum body size. As the loop drains the receive buffer, cowboy issues fresh HTTP/2 `WINDOW_UPDATE` frames, so the client can keep pushing data indefinitely.\n\nThe `grpc-timeout` header is attacker-supplied and optional. When absent, `timeout_left_opt(nil)` returns `:infinity`, so the per-chunk read also has no deadline. The two missing controls compound: a fast client can blast multi-gigabyte payloads directly into memory; a slow client can trickle data forever.\n\n### PoC\n\n1. Start any `grpc` server exposing a unary RPC (no special configuration required).\n2. Open an HTTP/2 connection and send a POST to any unary RPC path with `Content-Type: application/grpc+proto` — omit the `grpc-timeout` header.\n3. Stream a large body (e.g. 1 GiB) in chunks without sending the final `END_STREAM` flag immediately.\n4. Observe BEAM memory growing proportionally to uploaded data with no server-side cap.\n\n### Impact\n\nAffects `grpc` ≥ 0.3.1. No authentication, no special configuration, and no specific RPC method required, the unbounded read is on the default unary ingress path.\n\n### References\n\n* Introduction commit: https://github.com/elixir-grpc/grpc/commit/d1abe70a6cad6dac4a3f8235d883d7c896989560\n* Patch commit: https://github.com/elixir-grpc/grpc/commit/49e18c3ec6bb9afe2f712caad3dbab5c56a68a00","format":"markdown","source":"ghsa"},{"lang":"en","text":"## Summary\n\nAllocation of Resources Without Limits or Throttling vulnerability in elixir-grpc grpc allows unauthenticated attackers to exhaust the BEAM's memory and crash the server by streaming a large or slow-trickle unary request body.\n\n`'Elixir.GRPC.Server.Adapters.Cowboy.Handler':read_full_body/3` (`lib/grpc/server/adapters/cowboy/handler.ex`) accumulates every received chunk into a single growing binary with no size cap. Additionally, when the client omits the `grpc-timeout` header, the per-chunk read timeout resolves to `:infinity`, allowing a slow-trickle client to keep the connection alive indefinitely while memory grows. A single connection is sufficient to exhaust server memory and crash the node.\n\nThis issue affects grpc: from 0.3.0-alpha.2 before 1.0.0.","format":"markdown","source":"eef"},{"lang":"es","text":"Vulnerabilidad de asignación de recursos sin límites o estrangulamiento en elixir-grpc grpc permite a atacantes no autenticados agotar la memoria del BEAM y colapsar el servidor mediante la transmisión de un cuerpo de solicitud unaria grande o de goteo lento.\n\n’Elixir.GRPC.Server.Adapters.Cowboy.Handler’:read_full_body/3 (lib/grpc/server/adapters/cowboy/handler.ex) acumula cada fragmento recibido en un único binario creciente sin límite de tamaño. Además, cuando el cliente omite el encabezado grpc-timeout, el tiempo de espera de lectura por fragmento se resuelve a :infinity, permitiendo a un cliente de goteo lento mantener la conexión activa indefinidamente mientras la memoria crece. Una sola conexión es suficiente para agotar la memoria del servidor y colapsar el nodo.\n\nEste problema afecta a grpc desde 0.3.1 antes de 1.0.0.","source":"nvd"}],"published":"2026-06-15T21:55:23.629Z","modified":"2026-11-26T17:23:04.659Z","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-770"],"affected":[{"ranges":[{"type":"semver","introduced":"0.3.0-alpha.2","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":"git","introduced":"d1abe70a6cad6dac4a3f8235d883d7c896989560","fixed":"49e18c3ec6bb9afe2f712caad3dbab5c56a68a00","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.3.1","status":"affected","fixed":"1.0.0"}],"ecosystem":"Hex","package":"grpc","purl":"pkg:hex/grpc","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.3.0-alpha.2","status":"affected","fixed":"1.0.0"}],"ecosystem":"Hex","package":"grpc","purl":"pkg:hex/grpc","source":"eef"},{"ranges":[{"type":"git","introduced":"d1abe70a6cad6dac4a3f8235d883d7c896989560","status":"affected","fixed":"49e18c3ec6bb9afe2f712caad3dbab5c56a68a00"}],"repo":"https://github.com/elixir-grpc/grpc","source":"eef"}],"references":[{"url":"https://github.com/elixir-grpc/grpc/security/advisories/GHSA-q8gf-9rvj-gmgj","tags":["advisory","exploit","related","vendor-advisory","web"],"sources":["cvelist","ghsa","eef","nvd"]},{"url":"https://cna.erlef.org/cves/CVE-2026-48854.html","tags":["related","web"],"sources":["cvelist","ghsa","eef","nvd"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-48854","tags":["related","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/elixir-grpc/grpc/commit/d1abe70a6cad6dac4a3f8235d883d7c896989560","tags":["related","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://github.com/elixir-grpc/grpc/commit/49e18c3ec6bb9afe2f712caad3dbab5c56a68a00","tags":["fix","patch","web"],"sources":["cvelist","ghsa","eef","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-48854","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/elixir-grpc/grpc/pull/542","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"]}],"credits":["Peter Ullrich","Jonatan Männchen / EEF","Paulo Valente"],"assigner":"EEF","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2026-06-16T14:47:02.881Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-48854","url":"https://www.cve.org/CVERecord?id=CVE-2026-48854","licence":"CVE Terms of Use","modified":"2026-11-19T06:54:36.946Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-q8gf-9rvj-gmgj","url":"https://github.com/advisories/GHSA-q8gf-9rvj-gmgj","licence":"CC-BY-4.0","modified":"2026-08-26T00:38:22.365Z"},{"source":"eef","name":"Erlang Ecosystem Foundation","id":"EEF-CVE-2026-48854","url":"https://osv.dev/vulnerability/EEF-CVE-2026-48854","licence":"CC-BY-4.0","modified":"2026-11-26T17:23:04.659Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-48854","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-48854","licence":"Public domain","modified":"2026-10-25T23:10:00.167Z"}],"updatedAt":"2026-11-26T17:37:07.065Z","epss":{"score":0.00531,"percentile":0.46353,"date":"2026-12-01T12:00:22.000Z"}}