{"id":"CVE-2026-121808","published":"2026-11-13T15:48:49Z","modified":"2026-11-20T05:56:02Z","title":"Memory exhaustion via compressed Erlang terms in the elixir-grpc Erlpack codec","vendor":"elixir-grpc","product":"grpc","tier":"tail","description":{"text":"Improper Handling of Highly Compressed Data (Data Amplification) vulnerability in elixir-grpc grpc_core and grpc allows unauthenticated attackers to exhaust server memory via a compressed Erlang external term in a gRPC message body.\n\nGRPC.Codec.Erlpack.decode/2 (grpc_core/lib/grpc/codec/erlpack.ex, and lib/grpc/codec/erlpack.ex before the package split) passes the message body to :erlang.binary_to_term/2. That function inflates a compressed term in full before it returns. The codec sets no limit on the decoded size, and its type checks run only on the decoded term. The server's max_body_size limit counts the compressed bytes of the request. A request with Content-Type: application/grpc+erlpack can therefore make the server allocate a term much larger than the request body.\n\nThis issue affects grpc: from 0.4.0 before 1.0.0; grpc_core: from 1.0.0 before 1.1.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.2,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00496,"percentile":0.43392,"provenance":"source"},"cwes":[{"id":"CWE-409","name":"Improper Handling of Highly Compressed Data (Data Amplification)"}],"references":[{"url":"https://github.com/elixir-grpc/grpc/security/advisories/GHSA-xxp9-7hp4-rqwp","tags":["vendor-advisory","related"]},{"url":"https://cna.erlef.org/cves/CVE-2026-121808.html","tags":["related"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-121808","tags":["related"]},{"url":"https://github.com/elixir-grpc/grpc/commit/25bcc569fe2cc4478531a6c546c923205fc751c9","tags":["related"]},{"url":"https://github.com/elixir-grpc/grpc/commit/0332faae5f5e132314794dbfdae5edecbccea292","tags":["patch"]},{"url":"https://github.com/elixir-grpc/grpc/commit/d6bc56ac75dfb6c02db2099909210a37c9be8db6","tags":["patch"]}],"priority":{"score":14.4,"factors":[{"name":"EPSS percentile","points":8.68},{"name":"CVSS severity","points":5.74}]},"vendorSlug":"elixir-grpc","affectedVersions":[{"vendor":"elixir-grpc","product":"grpc","versions":[">= 0.4.0, < 1.0.0"]},{"vendor":"elixir-grpc","product":"grpc","versions":[">= 25bcc569fe2cc4478531a6c546c923205fc751c9, < 0332faae5f5e132314794dbfdae5edecbccea292"]},{"vendor":"elixir-grpc","product":"grpc_core","versions":[">= 1.0.0, < 1.1.0"]},{"vendor":"elixir-grpc","product":"grpc_core","versions":[">= 0332faae5f5e132314794dbfdae5edecbccea292, < d6bc56ac75dfb6c02db2099909210a37c9be8db6"]}],"workarounds":{"items":["Remove GRPC.Codec.Erlpack from the server's codecs list if the codec is not needed. If the codec is needed, register a wrapper codec in its place. The wrapper implements the GRPC.Codec behaviour, returns \"erlpack\" from name/0, raises in decode/2 when the body starts with the bytes 131, 80 (the compressed term tag), and delegates all other calls to GRPC.Codec.Erlpack."],"from":"CVE.org CNA","provenance":"source"},"capec":[{"id":"CAPEC-130","name":"An unauthenticated client can make a server that registers the Erlpack codec allocate memory far beyond the size of the request with one request. Memory exhaustion affects every service on that node."}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-11-16T22:54:59.075851Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-125529","exploited":false,"provenance":"source"}}