Improper Handling of Highly Compressed Data (Data Amplification) Affecting grpc_core package, versions >=1.0.0 <1.1.0


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.7% (54th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-HEX-GRPCCORE-22566241
  • published16 Nov 2026
  • disclosed13 Nov 2026
  • credit1chig0, 3rdn4Li, DennyDai, SuyueGuo, alexps9, manus-use

Introduced: 13 Nov 2026

NewCVE-2026-121808  (opens in a new tab)
CWE-409  (opens in a new tab)

How to fix?

Upgrade grpc_core to version 1.1.0 or higher.

Overview

grpc_core is a gRPC Core Core gRPC types, codecs, and utilities for Elixir.

This package provides the foundational components used by both grpc_server and grpc:

Codecs: Protocol Buffers, JSON, WebText, Erlpack Compressors: Gzip compression support Transport: HTTP/2 utilities Core Types: Status codes, errors, credentials, telemetry Protoc Plugin: Code generation tooling

Affected versions of this package are vulnerable to Improper Handling of Highly Compressed Data (Data Amplification) via GRPC.Codec.Erlpack.decode/2 in the Erlpack codec. An unauthenticated client can send a compressed Erlang term in a gRPC message with Content-Type: application/grpc+erlpack to a server that registers this codec; :erlang.binary_to_term/2 inflates the term before the codec checks it, allowing a small request to exhaust the node’s memory and disrupt every service running on it.

Notes

  • At the transport-to-codec handoff, the gRPC compressed flag must be 0: the Erlang term is compressed inside the message body, which then reaches the codec unchanged and is not bounded by the transport decompression limit.

Workarounds

  • If Erlpack is not needed, remove GRPC.Codec.Erlpack from the server’s codecs list to prevent requests from using the vulnerable codec.
  • If Erlpack is needed, register a wrapper codec in its place. Have it implement GRPC.Codec, return "erlpack" from name/0, raise in decode/2 when the body starts with bytes 131, 80, and delegate other calls to GRPC.Codec.Erlpack. This blocks compressed terms from reaching the decoder while preserving handling of other Erlpack payloads.

CVSS Base Scores

version 4.0
version 3.1