CVE-2021-45710Tokio
High 8.1 No auth needed
Follow: this CVE · Tokio · Tokio We alert you by email or Slack (account required).
- Priority
- 64
- CVSS 3.1
- 8.1
- EPSS
- 1.2% probability of exploitation in 30 days · percentile 69
- Auth required
- No
- Published
- Dec 27, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-362
- Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
An issue was discovered in the tokio crate before 1.8.4, and 1.9.x through 1.13.x before 1.13.1, for Rust. In certain circumstances involving a closed oneshot channel, there is a data race and memory corruption.
What to do
- Apply the vendor's security update for Tokio.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| crates.io | tokio |
≥ 0.1.14 < 1.8.4 |
1.8.4 |
cargo update -p tokio --precise 1.8.4 |
| crates.io | tokio |
≥ 1.9.0 < 1.13.1 |
1.13.1 |
cargo update -p tokio --precise 1.13.1 |
| crates.io | tokio |
≥ 0.1.14 < 1.8.4 |
1.8.4 |
cargo update -p tokio --precise 1.8.4 |
| crates.io | tokio |
≥ 1.9.0 < 1.13.1 |
1.13.1 |
cargo update -p tokio --precise 1.13.1 |
Per OSV / GitHub Advisories (GHSA-fg7r-2g4j-5cgr, RUSTSEC-2021-0124). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| tokio | tokio | ≥ 0.1.14 < 1.8.4 |
| tokio | tokio | ≥ 1.9.0 < 1.13.1 |
Official sources
References
Links published by the sources. Open them with care.
- raw.githubusercontent.com Third Party Advisory
- rustsec.org Patch Third Party Advisory