Advisory

GHSA-4jwc-w2hc-78qv

Also known as: CVE-2024-47609, RUSTSEC-2024-0376

Summary

Tonic has remotely exploitable denial of service vulnerability

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

Medium Basis: The source's own band: MODERATE

Dates

Published
2024-10-01 22:27 UTC
Modified
2026-09-10 03:50 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: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences