{"id":"CVE-2026-121808","summary":"Memory exhaustion via compressed Erlang terms in the elixir-grpc Erlpack codec","details":"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.","aliases":["EEF-CVE-2026-121808","GHSA-xxp9-7hp4-rqwp"],"modified":"2026-11-20T20:49:34.737875011Z","published":"2026-11-13T15:48:49.871Z","database_specific":{"cwe_ids":["CWE-409"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/121xxx/CVE-2026-121808.json","cna_assigner":"EEF"},"references":[{"type":"WEB","url":"https://cna.erlef.org/cves/CVE-2026-121808.html"},{"type":"WEB","url":"https://github.com"},{"type":"WEB","url":"https://osv.dev/vulnerability/EEF-CVE-2026-121808"},{"type":"WEB","url":"https://repo.hex.pm"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/121xxx/CVE-2026-121808.json"},{"type":"ADVISORY","url":"https://github.com/elixir-grpc/grpc/security/advisories/GHSA-xxp9-7hp4-rqwp"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-121808"},{"type":"FIX","url":"https://github.com/elixir-grpc/grpc/commit/0332faae5f5e132314794dbfdae5edecbccea292"},{"type":"FIX","url":"https://github.com/elixir-grpc/grpc/commit/25bcc569fe2cc4478531a6c546c923205fc751c9"},{"type":"FIX","url":"https://github.com/elixir-grpc/grpc/commit/d6bc56ac75dfb6c02db2099909210a37c9be8db6"},{"type":"PACKAGE","url":"https://github.com/elixir-grpc/grpc"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/elixir-grpc/grpc","events":[{"introduced":"25bcc569fe2cc4478531a6c546c923205fc751c9"},{"fixed":"0332faae5f5e132314794dbfdae5edecbccea292"},{"introduced":"0332faae5f5e132314794dbfdae5edecbccea292"},{"fixed":"d6bc56ac75dfb6c02db2099909210a37c9be8db6"},{"introduced":"e45282526107417bd54f57bb8298b52a7c272ccb"},{"fixed":"8105f803030f7f5ae1d722251ee6ab2e36878830"},{"introduced":"8105f803030f7f5ae1d722251ee6ab2e36878830"},{"fixed":"cb463a0d1584c9dc70d621e7afdb0721f67f1d36"},{"fixed":"25bcc569fe2cc4478531a6c546c923205fc751c9"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"25bcc569fe2cc4478531a6c546c923205fc751c9"},{"fixed":"0332faae5f5e132314794dbfdae5edecbccea292"}],"source":"AFFECTED_FIELD","strategy":"StandardRange"},{"range":[{"introduced":"0332faae5f5e132314794dbfdae5edecbccea292"},{"fixed":"d6bc56ac75dfb6c02db2099909210a37c9be8db6"}],"source":"AFFECTED_FIELD","strategy":"StandardRange"},{"strategy":"StandardRange","range":[{"introduced":"0.4.0"},{"fixed":"1.0.0"}],"source":"AFFECTED_FIELD"},{"range":[{"introduced":"1.0.0"},{"fixed":"1.1.0"}],"source":"AFFECTED_FIELD","strategy":"StandardRange"},{"range":[{"fixed":"25bcc569fe2cc4478531a6c546c923205fc751c9"}],"source":"REFERENCES_COMMIT"},{"range":[{"fixed":"0332faae5f5e132314794dbfdae5edecbccea292"}],"source":"REFERENCES_COMMIT"},{"source":"REFERENCES_COMMIT","range":[{"fixed":"d6bc56ac75dfb6c02db2099909210a37c9be8db6"}]}]}}],"versions":["v0.11.2","v0.8.1","v0.8.0","v0.7.0","v0.6.0","v0.5.0","v0.5.0-beta.1","v0.5.0-beta","v0.4.0"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-121808.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"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"}]}