What’s Vulnerable › Vulnerabilities

GHSA-rr8g-9fpq-6wmg: Tokio broadcast channel calls clone in parallel, but does not require `Sync`

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

How to fix

Upgrade to a fixed version: Crates.Io Tokio 1.44.2, 1.38.2, 1.43.1. Check the vendor advisory for mitigations.

References

Get alerted when GHSA-rr8g-9fpq-6wmg or the next vulnerability affects your stack