What’s Vulnerable › Vulnerabilities
CVE-2021-38191
- Severity: medium (CVSS 5.9 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.8% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2021-08-08 · updated 2026-06-17
- Weakness: CWE-362
Description
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.
Affected products
- tokio-rs tokio: from 0.3.0 before 1.5.1; from 1.6.0 before 1.6.3; from 1.7.0 before 1.7.2; 1.8.0 — fixed in 1.5.1, 1.6.3, 1.7.2
How to fix
Upgrade to a fixed version: tokio-rs tokio 1.5.1, 1.6.3, 1.7.2. Check the vendor advisory for mitigations.
References
- https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/tokio/RUSTSEC-2021-0072.md
- https://rustsec.org/advisories/RUSTSEC-2021-0072.html
- https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/tokio/RUSTSEC-2021-0072.md
- https://rustsec.org/advisories/RUSTSEC-2021-0072.html
Get alerted when CVE-2021-38191 or the next vulnerability affects your stack