# CVE-2026-121809: CPU exhaustion via a truncated gRPC message on streaming RPCs in elixir-grpc grpc_server


- **Severity:** High 8.2 (`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`)
- **Exploited in the wild:** Not known
- **Fix available:** Yes
- **Published:** 13 Nov 2026
- **Updated:** 19 Nov 2026
- **Also known as:** EEF-CVE-2026-121809, GHSA-c2h9-f9cc-27xh

## What is CVE-2026-121809?

CVE-2026-121809 is a high-severity vulnerability in elixir-grpc grpc, published on 13 Nov 2026. 

### Official description

Loop with Unreachable Exit Condition ('Infinite Loop') vulnerability in elixir-grpc grpc_server and grpc allows unauthenticated attackers to occupy a BEAM scheduler indefinitely via a client-streaming or bidirectional-streaming request whose body ends inside a gRPC message.

GRPC.Server.Adapters.Cowboy.read_stream/1 (grpc_server/lib/grpc/server/adapters/cowboy.ex, and the Cowboy adapter in grpc before the package split) asks for more data whenever the buffer does not hold a complete message. Once the request body has ended, every further read returns an empty chunk, so the buffer never changes and the function retries without end. A single 5-byte length prefix sent with END_STREAM keeps one scheduler busy for as long as the connection stays open, and repeated requests exhaust all schedulers.

This issue affects grpc: from 0.3.1 before 1.0.0; grpc_server: from 1.0.0 before 1.1.0.

Weakness: CWE-835 (Loop with Unreachable Exit Condition), CWE-400 (Uncontrolled Resource Consumption)

## Which versions are affected by CVE-2026-121809?

2 open source packages ship an affected version, including grpc and grpc_server. It affects 2 products.


| Package | Ecosystem | PURL | Affected | Fixed in |
| --- | --- | --- | --- | --- |
| `grpc` | Hex | `pkg:hex/grpc` | From 0.3.1 | 1.0.0 |
| `grpc_server` | Hex | `pkg:hex/grpc_server` | From 1.0.0 | 1.1.0 |

Products: Elixir-Grpc Grpc, Elixir-Grpc Grpc Server.

CPE match criteria (CPE 2.3):

- `cpe:2.3:a:elixir-grpc:grpc:*:*:*:*:*:*:*:*` from 0.3.1 before 1.0.0
- `cpe:2.3:a:elixir-grpc:grpc_server:*:*:*:*:*:*:*:*` from 1.0.0 before 1.1.0

Status by vendor (upstream, then each distribution release and vendor build):

| Who | Release | Status | Packages | Fixed in |
| --- | --- | --- | --- | --- |
| Upstream |  | fixed | `grpc`, `grpc_server` | 1.0.0, 1.1.0 |

## How do I fix CVE-2026-121809?

Upgrade grpc to 1.0.0 or later.

## Is CVE-2026-121809 being exploited?

There is no known exploitation of CVE-2026-121809 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-121809 and fix it if it is affected.

What it is: CVE-2026-121809 is a high-severity vulnerability in elixir-grpc grpc, published on 13 Nov 2026. 
Exploitation: There is no known exploitation of CVE-2026-121809 in the wild and no public exploit code.

Affected packages and fixed versions:
- grpc (Hex): affected from 0.3.1; fixed in 1.0.0
- grpc_server (Hex): affected from 1.0.0; fixed in 1.1.0

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-121809/ (Markdown: https://insights.sbomify.com/CVE-2026-121809/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-121809
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-121809
- OSV: https://osv.dev/vulnerability/CVE-2026-121809

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-121809/
Summaries are generated and may contain mistakes; the official description above is the record.
