CVE-2024-47609: Tonic Denial of Service Vulnerability

MODERATE
Advisory Identifier: GHSA-4jwc-w2hc-78qv
CVSS 5.3
CWE-755
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2024-47609
GHSA Identifier GHSA-4jwc-w2hc-78qv
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-755: Improper Handling of Exceptional Conditions
Affected Product Tonic
Package Ecosystem crates.io
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability Low (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.

tonic fixed: 0.12.3
Upgrade tonic to 0.12.3
Verify Direct and Transitive Dependencies

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

### 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](https://github.com/hyperium/tonic/issues/1897) ### Patches Upgrading to tonic `0.12.3` and above contains the fix. ### Workarounds A custom accept loop is a possible workaround.

CVE-2024-47609 Affected Tonic Versions

1 component(s)
Fixed Versions:
0.12.3
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?
CVE-2024-47609 is a security vulnerability in Tonic involving Tonic has remotely exploitable denial of service vulnerability under CWE-755: Improper Handling of Exceptional Conditions.
Which Tonic versions are affected?
Affected versions include releases prior to 0.12.3 across affected packages: tonic.
What version fixes CVE-2024-47609?
Upgrading to 0.12.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is tonic affected?
Yes, tonic is affected in releases prior to 0.12.3. Upgrade your dependency to 0.12.3 or later.
What is the CVSS score of CVE-2024-47609?
CVE-2024-47609 has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L.
What CWE is associated with CVE-2024-47609?
CVE-2024-47609 is classified under CWE-755: Improper Handling of Exceptional Conditions (The product does not handle or incorrectly handles an exceptional condition.).
How can I check crates.io dependencies for CVE-2024-47609?
Run the dependency tree command: 'inspect dependencies for tonic'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}