Advisory

RUSTSEC-2024-0376

Also known as: CVE-2024-47609, GHSA-4jwc-w2hc-78qv

Summary

Remotely exploitable Denial of Service in Tonic

Details

Impact

When using tonic::transport::Server there is a remote DoS attack that can cause the server to exit cleanly on accepting a tcp/tls stream. This can be triggered via causing the accept call to error out with errors there were not covered correctly causing the accept loop to exit.

More information can be found here

Patches

Upgrading to tonic 0.12.3 and above contains the fix.

Workarounds

A custom accept loop is a possible workaround.

Severity

Not rated by the source.

Dates

Published
2024-10-01 12:00 UTC
Modified
2026-10-12 18:00 UTC

Affected packages and fixes

tonic

crates.io · All systems

Affected

  • introduced 0.12.2, fixed 0.12.3 (semver)

Fixed versions

0.12.3

Fix

  • Fixed version 0.12.3
    cargo update -p tonic --precise 0.12.3

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: RustSec Advisory Database · CC0-1.0

Sources & licences