Advisory

GHSA-rr8g-9fpq-6wmg

Also known as: RUSTSEC-2025-0023

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.

Thank you to Austin Bonander for finding and reporting this issue.

Severity

Low Basis: The source's own band: LOW

Dates

Published
2025-04-07 21:12 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

tokio

crates.io · All systems

Affected

  • introduced 1.44.0, fixed 1.44.2 (semver)

Fixed versions

1.44.2

Fix

  • Fixed version 1.44.2
    cargo update -p tokio --precise 1.44.2

tokio

crates.io · All systems

Affected

  • introduced 0.2.5, fixed 1.38.2 (semver)

Fixed versions

1.38.2

Fix

  • Fixed version 1.38.2
    cargo update -p tokio --precise 1.38.2

tokio

crates.io · All systems

Affected

  • introduced 1.39.0, fixed 1.43.1 (semver)

Fixed versions

1.43.1

Fix

  • Fixed version 1.43.1
    cargo update -p tokio --precise 1.43.1

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences