CVE-2024-47609: Tonic has remotely exploitable denial of service vulnerability
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.
Published Oct 1, 2024 · Updated Sep 16, 2025
Affected packages
tonic
- Ecosystem
- Rust (crates.io)
- Affected
- = 0.12.2
- Fixed in
- 0.12.3
- Check
cargo tree -i tonic
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
Credited to jayvdb.
References
- https://github.com/hyperium/tonic/security/advisories/GHSA-4jwc-w2hc-78qv
- https://nvd.nist.gov/vuln/detail/CVE-2024-47609
- https://github.com/hyperium/tonic/issues/1897
- https://github.com/hyperium/tonic/commit/a4472a86f3290e60c7c01348b7e6a8164d6e7e48
- https://rustsec.org/advisories/RUSTSEC-2024-0376.html
- https://github.com/advisories/GHSA-4jwc-w2hc-78qv
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
