GitHub Advisoryadvisory · crates.io
GHSA-4jwc-w2hc-78qv Tonic has remotely exploitable denial of service vulnerability
MEDIUM
Official page ↗
- Aliases
- CVE-2024-47609
- Ecosystem
- crates.io
- Packages
- tonic
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- Weaknesses
- CWE-755
- Reviewed
- 2024-10-01
Affected packages
• crates.io tonic: >= 0.12.2, < 0.12.3 → fixed in 0.12.3
Description
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.
Related
Alias · CVE (1)
- CVE-2024-47609 Tonic is a native gRPC client & server implementation with async/await support. vulnerability
Weakness · CWE (1)
- CWE-755 Improper Handling of Exceptional Conditions weakness
References
- https://github.com/hyperium/tonic/security/advisories/GHSA-4jwc-w2hc-78qv web
- https://nvd.nist.gov/vuln/detail/CVE-2024-47609 advisory
- https://github.com/hyperium/tonic/issues/1897 web
- https://github.com/hyperium/tonic/commit/a4472a86f3290e60c7c01348b7e6a8164d6e7e48 web
- https://github.com/hyperium/tonic package
- https://rustsec.org/advisories/RUSTSEC-2024-0376.html web