Memory exhaustion via compressed Erlang terms in elixir-grpc
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- Present
- Impact type
- —
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA.
Summary
The elixir-grpc grpc package from 0.4.0 before 1.0.0 and grpc_core from 1.0.0 before 1.1.0 are affected. The Erlpack codec decodes the gRPC message body without any size limit, and the Erlang function it calls fully inflates a compressed term before returning, so the decoded term can be much larger than the request body (CWE-409). An unauthenticated remote attacker can exhaust server memory by sending a request with the application/grpc+erlpack content type.
Written with Claude Haiku 5.5 from the sources below · 2026-11-13
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| elixir-grpc | grpc | 0.4.0 to before 1.0.0 | 1.0.0 | Patch available | CNA |
| elixir-grpc | grpc_core | 1.0.0 to before 1.1.0 | 1.1.0 | Patch available | CNA |
- grpc Vendorelixir-grpc Affected 0.4.0 to before 1.0.0 Fixed in 1.0.0 Patch available CNA
- grpc_core Vendorelixir-grpc Affected 1.0.0 to before 1.1.0 Fixed in 1.1.0 Patch available CNA
CPE names CNA · 2
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:elixir-grpc:grpc:*:*:*:*:*:*:*:* | — | — | — |
| cpe:2.3:a:elixir-grpc:grpc_core:*:*:*:*:*:*:*:* | — | — | — |
- cpe:2.3:a:elixir-grpc:grpc:*:*:*:*:*:*:*:* Versions — — ·—
- cpe:2.3:a:elixir-grpc:grpc_core:*:*:*:*:*:*:*:* Versions — — ·—
Remediation
Upgrade grpc to version 1.0.0 and grpc_core to version 1.1.0.
Written with Claude Haiku 5.5 from the sources below · 2026-11-13
- Fix · CNA grpc (elixir-grpc) Fixed in 1.0.0
- Fix · CNA grpc_core (elixir-grpc) Fixed in 1.1.0
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Release ·
elixir-grpc grpc 0332faae5f5e132314794dbfdae5edecbccea292, 1.0.0
3 records Highest priority Priority LOW 3 LOW
Other records, highest priority first
- TI-2026-91650 Infinite loop in elixir-grpc grpc_server streaming RPCs exhausts CPUPriority LOW 37
- TI-2026-91649 Path bindings ignored for gRPC Content-Types in elixir-grpc grpc_serverPriority LOW 36
Timeline
- 2026-11-13 Threatist record created from CVE-2026-121808
- 2026-11-16 CISA SSVC decision points changed
References
More elixir-grpc vulnerabilities
- TI-2026-36118 Remote code execution and denial of service via unsafe Erlang term deserialization in elixir-grpc/grpc CVSS 4.0CRITICAL 9.2
- TI-2026-38512 grpc gzip decompression bomb in GRPC.Compressor.Gzip.decompress/1 CVSS 4.0HIGH 8.7
- TI-2026-36119 Unbounded request body accumulation causes memory exhaustion in elixir-grpc/grpc CVSS 4.0HIGH 8.7
- TI-2026-86129 Unbounded request buffering in elixir-grpc grpc_server exhausts memory CVSS 4.0HIGH 8.2
- TI-2026-35955 Authorization bypass via path binding override in elixir-grpc/grpc HTTP transcoding CVSS 4.0HIGH 7.6
- TI-2026-91650 Infinite loop in elixir-grpc grpc_server streaming RPCs exhausts CPU CVSS 4.0HIGH 8.2
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences