GHSA-rr8g-9fpq-6wmg: Tokio Tokio Broadcast Channel Calls Clone Vulnerability
LOWGHSA-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
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.
Upgrade tokio to 1.44.2
Upgrade tokio to 1.38.2
Upgrade tokio to 1.43.1
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
GHSA-rr8g-9fpq-6wmg Affected Tokio Versions
3 component(s)| 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?
Which Tokio versions are affected?
What version fixes GHSA-rr8g-9fpq-6wmg?
Is tokio affected?
What CWE is associated with GHSA-rr8g-9fpq-6wmg?
How can I check crates.io dependencies for GHSA-rr8g-9fpq-6wmg?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}