What’s Vulnerable › Vulnerabilities
RUSTSEC-2025-0023: Broadcast channel calls clone in parallel, but does not require `Sync`
- Severity: unknown
- Exploited in the wild: not listed in CISA KEV
- Public exploit or detection template: none known
- Published: 2025-04-07 · updated 2025-10-28
Description
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.
Affected products
- Crates.Io Tokio: from 0.2.5 before 1.38.2; from 1.39.0 before 1.42.1; from 1.43.0 before 1.43.1; from 1.44.0 before 1.44.2 — fixed in 1.38.2, 1.42.1, 1.43.1, 1.44.2
How to fix
Upgrade to a fixed version: Crates.Io Tokio 1.38.2, 1.42.1, 1.43.1, 1.44.2. Check the vendor advisory for mitigations.
References
- https://crates.io/crates/tokio
- https://rustsec.org/advisories/RUSTSEC-2025-0023.html
- https://github.com/tokio-rs/tokio/pull/7232
Get alerted when RUSTSEC-2025-0023 or the next vulnerability affects your stack