cvelo
P2 · HighCVSS 8.2EPSS 0.6%

Memory exhaustion via compressed Erlang terms in the elixir-grpc Erlpack codec

  • CVE-2026-121808
  • EUVD-2026-125529

Description

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. GRPC.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. This issue affects grpc: from 0.4.0 before 1.0.0; grpc_core: from 1.0.0 before 1.1.0.

Text from the CVE.org record.

Recommendation

  • elixir-grpc grpc

    • If you run a version from 0.4.0 to before 1.0.0update to 1.0.0 or laterMajor version change: expect breaking changes
  • elixir-grpc grpc_core

    • If you run a version from 1.0.0 to before 1.1.0update to 1.1.0 or laterMinor version change: check the release notes

Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.

Affected

  • elixir-grpc grpc

    Affected versionsFixed in
    from 0.4.0 to before 1.0.01.0.0
  • elixir-grpc grpc_core

    Affected versionsFixed in
    from 1.0.0 to before 1.1.01.1.0

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.