Intel

AIKIDO-2026-816961

connectrpc is vulnerable to Denial of Service (DoS)

Denial of Service (DoS)GHSA-jx5x-3mcr-qp8r Published 2 days ago

63

Medium Risk

This Affects:

RUSTconnectrpc
0.2.0 - 0.8.1
Fixed in 0.8.2
0.9.0 - 0.9.0
Fixed in 0.9.1
Are you affected? Scan for Free

TL;DR

connectrpc's server reads a client-streaming or bidirectional-streaming request body in a background task that keeps running after the handler returns, an interceptor rejects the call, or the request timeout fires. Before the fix, that task has no time limit, so a client that stops sending mid-message keeps the task, its buffered partial message, and the HTTP/2 stream or HTTP/1.x connection open indefinitely. A caller can hold many such calls open at once to exhaust server memory, tasks, and file descriptors. The fix applies an absolute five second timeout to the drain so a stalled client loses the stream or connection instead of holding it forever.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you serve client-streaming or bidirectional-streaming RPCs.

Background info

connectrpc is vulnerable to Denial of Service (DoS) in versions 0.2.0 - 0.8.1 and 0.9.0 - 0.9.0.

How to fix this

Upgrade the connectrpc library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform