Deserialization of Untrusted Data and Allocation of Resources Without Limits or Throttling vulnerabilities in elixir-grpc grpc allow unauthenticated attackers to crash the BEAM node via atom table exhaustion and, when a decoded term flows into a call site that invokes it, achieve remote code execution on the server. 'Elixir.GRPC.Codec.Erlpack':decode/2 (lib/grpc/codec/erlpack.ex) calls :erlang.binarytoterm/1 on the raw gRPC message body without the :safe option, no size bound, and no type guard. Any unauthenticated peer that sends a request with Content-Type: application/grpc+erlpack can send a crafted payload that mints arbitrary new atoms (which are never garbage-collected, exhausting the bounded atom table and crashing the VM) or that encodes a fun term which, if applied anywhere downstream, executes attacker-controlled code inside the server process. This issue affects grpc from 0.4.0 before 1.0.0.
{
"binaries": [
{
"binary_name": "libgrpc++1",
"binary_version": "1.16.1-1ubuntu5"
},
{
"binary_name": "libgrpc6",
"binary_version": "1.16.1-1ubuntu5"
},
{
"binary_name": "protobuf-compiler-grpc",
"binary_version": "1.16.1-1ubuntu5"
},
{
"binary_name": "python3-grpcio",
"binary_version": "1.16.1-1ubuntu5"
},
{
"binary_name": "ruby-grpc",
"binary_version": "1.16.1-1ubuntu5"
},
{
"binary_name": "ruby-grpc-tools",
"binary_version": "1.16.1-1ubuntu5"
}
]
}{
"binaries": [
{
"binary_name": "libgrpc++1",
"binary_version": "1.30.2-3build6"
},
{
"binary_name": "libgrpc10",
"binary_version": "1.30.2-3build6"
},
{
"binary_name": "protobuf-compiler-grpc",
"binary_version": "1.30.2-3build6"
},
{
"binary_name": "python3-grpcio",
"binary_version": "1.30.2-3build6"
},
{
"binary_name": "ruby-grpc",
"binary_version": "1.30.2-3build6"
},
{
"binary_name": "ruby-grpc-tools",
"binary_version": "1.30.2-3build6"
}
]
}{
"binaries": [
{
"binary_name": "libgrpc++1.51t64",
"binary_version": "1.51.1-4.1build5"
},
{
"binary_name": "libgrpc29t64",
"binary_version": "1.51.1-4.1build5"
},
{
"binary_name": "protobuf-compiler-grpc",
"binary_version": "1.51.1-4.1build5"
},
{
"binary_name": "python3-grpcio",
"binary_version": "1.51.1-4.1build5"
},
{
"binary_name": "ruby-grpc",
"binary_version": "1.51.1-4.1build5"
},
{
"binary_name": "ruby-grpc-tools",
"binary_version": "1.51.1-4.1build5"
}
]
}{
"binaries": [
{
"binary_name": "libgrpc++1.51t64",
"binary_version": "1.51.1-6build1"
},
{
"binary_name": "libgrpc29t64",
"binary_version": "1.51.1-6build1"
},
{
"binary_name": "protobuf-compiler-grpc",
"binary_version": "1.51.1-6build1"
},
{
"binary_name": "python3-grpcio",
"binary_version": "1.51.1-6build1"
},
{
"binary_name": "ruby-grpc",
"binary_version": "1.51.1-6build1"
},
{
"binary_name": "ruby-grpc-tools",
"binary_version": "1.51.1-6build1"
}
]
}{
"binaries": [
{
"binary_name": "libgrpc++1.51t64",
"binary_version": "1.51.1-8ubuntu1"
},
{
"binary_name": "libgrpc29t64",
"binary_version": "1.51.1-8ubuntu1"
},
{
"binary_name": "protobuf-compiler-grpc",
"binary_version": "1.51.1-8ubuntu1"
},
{
"binary_name": "python3-grpcio",
"binary_version": "1.51.1-8ubuntu1"
},
{
"binary_name": "ruby-grpc",
"binary_version": "1.51.1-8ubuntu1"
},
{
"binary_name": "ruby-grpc-tools",
"binary_version": "1.51.1-8ubuntu1"
}
]
}