GHSA-rr8g-9fpq-6wmg: Tokio Tokio Broadcast Channel Calls Clone Vulnerability

LOW
CWE-664
Published
Advisory Summary

GHSA-rr8g-9fpq-6wmg is a LOW tokio broadcast channel calls clone vulnerability (CWE-664: Improper Control of a Resource Through its Lifetime) affecting Tokio libraries in the crates.io ecosystem. The issue involves tokio broadcast channel calls clone in parallel, but does not require `sync`. Remediation is available by upgrading affected packages to version 1.44.2, 1.38.2, 1.43.1.

GHSA-rr8g-9fpq-6wmg at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-rr8g-9fpq-6wmg
Severity LOW
CVSS v3.1 Base Score N/A
CWE Classification CWE-664: Improper Control of a Resource Through its Lifetime
Affected Product Tokio
Package Ecosystem crates.io
Published Date
Last Updated

How to Fix GHSA-rr8g-9fpq-6wmg

To remediate this vulnerability, upgrade all affected Tokio dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

tokio fixed: 1.44.2
Upgrade tokio to 1.44.2
tokio fixed: 1.38.2
Upgrade tokio to 1.38.2
tokio fixed: 1.43.1
Upgrade tokio to 1.43.1
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 tokio

How to Check if You Are Affected

To determine whether your application is affected by GHSA-rr8g-9fpq-6wmg, inspect your project dependencies for Tokio:

inspect dependencies for tokio

Analyze the terminal output to locate any version of Tokio in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.44.2), 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-664: Improper Control of a Resource Through its Lifetime, where the product does not maintain or incorrectly maintains control over a resource throughout its lifetime of creation, use, and release. In Tokio, 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

The broadcast channel internally calls `clone` on the stored value when receiving it, and only requires `T:Send`. This means that using the broadcast channel with values that are `Send` but not `Sync` can trigger unsoundness if the `clone` implementation makes use of the value being `!Sync`. Thank you to Austin Bonander for finding and reporting this issue.

GHSA-rr8g-9fpq-6wmg Affected Tokio Versions

3 component(s)
Fixed Versions:
1.44.21.38.21.43.1
Product / Package Ecosystem Affected Versions Fixed Version
tokio
crates.io
≥ 1.44.0
< 1.44.2
1.44.2
tokio
crates.io
≥ 0.2.5
< 1.38.2
1.38.2
tokio
crates.io
≥ 1.39.0
< 1.43.1
1.43.1

References

Frequently Asked Questions

What is GHSA-rr8g-9fpq-6wmg?
GHSA-rr8g-9fpq-6wmg is a security vulnerability in Tokio involving Tokio broadcast channel calls clone in parallel, but does not require `Sync` under CWE-664: Improper Control of a Resource Through its Lifetime.
Which Tokio versions are affected?
Affected versions include releases prior to 1.44.2, 1.38.2, 1.43.1 across affected packages: tokio.
What version fixes GHSA-rr8g-9fpq-6wmg?
Upgrading to 1.44.2, 1.38.2, 1.43.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is tokio affected?
Yes, tokio is affected in releases prior to 1.44.2, 1.38.2, 1.43.1. Upgrade your dependency to 1.44.2, 1.38.2, 1.43.1 or later.
What CWE is associated with GHSA-rr8g-9fpq-6wmg?
GHSA-rr8g-9fpq-6wmg is classified under CWE-664: Improper Control of a Resource Through its Lifetime (The product does not maintain or incorrectly maintains control over a resource throughout its lifetime of creation, use, and release.).
How can I check crates.io dependencies for GHSA-rr8g-9fpq-6wmg?
Run the dependency tree command: 'inspect dependencies for tokio'. 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-rr8g-9fpq-6wmg",
  "modified" : "2025-04-07T21:12:50Z",
  "published" : "2025-04-07T21:12:50Z",
  "aliases" : [ ],
  "summary" : "Tokio broadcast channel calls clone in parallel, but does not require `Sync`",
  "details" : "The broadcast channel internally calls `clone` on the stored value when receiving it, and only requires `T:Send`. This means that using the broadcast channel with values that are `Send` but not `Sync` can trigger unsoundness if the `clone` implementation makes use of the value being `!Sync`.\n\nThank you to Austin Bonander for finding and reporting this issue.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:U"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "tokio"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.44.0"
      }, {
        "fixed" : "1.44.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "tokio"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.2.5"
      }, {
        "fixed" : "1.38.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "tokio"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.39.0"
      }, {
        "fixed" : "1.43.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/tokio-rs/tokio/pull/7232"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/tokio-rs/tokio"
  }, {
    "type" : "WEB",
    "url" : "https://rustsec.org/advisories/RUSTSEC-2025-0023.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-664" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-04-07T21:12:50Z",
    "nvd_published_at" : null
  }
}