CVE-2021-38191Tokio
Medium 5.9 No auth needed
Follow: this CVE · Tokio · Tokio We alert you by email or Slack (account required).
- Priority
- 50
- CVSS 3.1
- 5.9
- EPSS
- 0.8% probability of exploitation in 30 days · percentile 55
- Auth required
- No
- Published
- Aug 8, 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:N/I:N/A:H
What happens
An issue was discovered in the tokio crate before 1.8.1 for Rust. Upon a JoinHandle::abort, a Task may be dropped in the wrong thread.
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 |
≥ 1.8.0 < 1.8.1 |
1.8.1 |
cargo update -p tokio --precise 1.8.1 |
| crates.io | tokio |
≥ 1.7.0 < 1.7.2 |
1.7.2 |
cargo update -p tokio --precise 1.7.2 |
| crates.io | tokio |
≥ 1.6.0 < 1.6.3 |
1.6.3 |
cargo update -p tokio --precise 1.6.3 |
| crates.io | tokio |
≥ 0.3.0 < 1.5.1 |
1.5.1 |
cargo update -p tokio --precise 1.5.1 |
| crates.io | tokio |
≥ 0.3.0 < 1.5.1 |
1.5.1 |
cargo update -p tokio --precise 1.5.1 |
| crates.io | tokio |
≥ 1.6.0 < 1.6.3 |
1.6.3 |
cargo update -p tokio --precise 1.6.3 |
| crates.io | tokio |
≥ 1.7.0 < 1.7.2 |
1.7.2 |
cargo update -p tokio --precise 1.7.2 |
| crates.io | tokio |
≥ 1.8.0 < 1.8.1 |
1.8.1 |
cargo update -p tokio --precise 1.8.1 |
Per OSV / GitHub Advisories (GHSA-2grh-hm3w-w7hv, RUSTSEC-2021-0072). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| tokio | tokio | ≥ 0.3.0 < 1.5.1 |
| tokio | tokio | ≥ 1.6.0 < 1.6.3 |
| tokio | tokio | ≥ 1.7.0 < 1.7.2 |
| tokio | tokio | 1.8.0 |
Official sources
References
Links published by the sources. Open them with care.
- raw.githubusercontent.com Third Party Advisory
- rustsec.org Exploit Issue Tracking Patch