CVE-2024-47609: Tonic Denial of Service Vulnerability
MODERATECVE-2024-47609 is a MODERATE (CVSS 5.3) denial of service vulnerability (CWE-755: Improper Handling of Exceptional Conditions) affecting Tonic libraries in the crates.io ecosystem. The issue involves tonic has remotely exploitable denial of service vulnerability. Remediation is available by upgrading affected packages to version 0.12.3.
CVE-2024-47609 at a Glance
Security Impact
CVSS: 5.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L).
How to Fix CVE-2024-47609
To remediate this vulnerability, upgrade all affected Tonic dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade tonic to 0.12.3
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for tonic
How to Check if You Are Affected
To determine whether your application is affected by CVE-2024-47609, inspect your project dependencies for Tonic:
inspect dependencies for tonic
Analyze the terminal output to locate any version of Tonic in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.12.3), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-755: Improper Handling of Exceptional Conditions, where the product does not handle or incorrectly handles an exceptional condition. In Tonic, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2024-47609 Affected Tonic Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
tonic
|
crates.io |
≥ 0.12.2
< 0.12.3
All 1 versions
0.12.2
|
0.12.3
|
References
Frequently Asked Questions
What is CVE-2024-47609?
Which Tonic versions are affected?
What version fixes CVE-2024-47609?
Is tonic affected?
What is the CVSS score of CVE-2024-47609?
What CWE is associated with CVE-2024-47609?
How can I check crates.io dependencies for CVE-2024-47609?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-4jwc-w2hc-78qv",
"modified" : "2025-09-16T14:43:30Z",
"published" : "2024-10-01T22:27:58Z",
"aliases" : [ "CVE-2024-47609" ],
"summary" : "Tonic has remotely exploitable denial of service vulnerability",
"details" : "### Impact\n\nWhen 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. \n\nMore information can be found [here](https://github.com/hyperium/tonic/issues/1897)\n\n### Patches\n\nUpgrading to tonic `0.12.3` and above contains the fix. \n\n### Workarounds\n\nA custom accept loop is a possible workaround.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/U:Green"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "crates.io",
"name" : "tonic"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.12.2"
}, {
"fixed" : "0.12.3"
} ]
} ],
"versions" : [ "0.12.2" ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/hyperium/tonic/security/advisories/GHSA-4jwc-w2hc-78qv"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-47609"
}, {
"type" : "WEB",
"url" : "https://github.com/hyperium/tonic/issues/1897"
}, {
"type" : "WEB",
"url" : "https://github.com/hyperium/tonic/commit/a4472a86f3290e60c7c01348b7e6a8164d6e7e48"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/hyperium/tonic"
}, {
"type" : "WEB",
"url" : "https://rustsec.org/advisories/RUSTSEC-2024-0376.html"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-755" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-10-01T22:27:58Z",
"nvd_published_at" : "2024-10-01T21:15:08Z"
}
}