CVE-2021-38191: tokio Race Condition
CVSS: 5.9v3.1MediumModified
AliasesGHSA-2grh-hm3w-w7hvRUSTSEC-2021-0072
Published 08-08-2021Last modified 04-08-2024
Vulnerability summary
CVE-2021-38191 is a medium (CVSS 5.9) Race Condition vulnerability in tokio. EPSS estimates a 0.83% chance of exploitation in the next 30 days, higher than 56.9% of scored vulnerabilities. 1 public exploit is recorded.
CVSS score
5.9/10
010
Medium · v3.1 (NVD)EPSS score
0.83%
0%100%
Low · 0.00 pp in 30 daysKEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits1reference
Timeline
- 08-08-2021PublishedVulnerability first disclosed.
- 04-08-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
3 scores · 2 sources · 2 versionsMedium 5.9Preferred score · NVD (NIST)
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:HSourcesAll 2 agree
- OSV · Crates.ioEcosystem advisory · calculated5.9MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Medium 4.3Preferred score · NVD (NIST)
AV:N/AC:M/Au:N/C:N/I:N/A:PSourcesSingle source
EPSS trend
Probability
0.83%
Chance of exploitation in the next 30 days
Percentile
57%
Versus all other CVEs
30-day change
0.00 pp
From 0.84% on 20-09-2026
20-09-202620-10-2026
EPSS score0.83%
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundExploit Reference (rustsec.org)
Maturity: unknown
Weaknesses
CWE · root causeAffected systems
Crates.Io1 product
- tokio≥ 1.7.0, < 1.7.2 | ≥ 1.6.0, < 1.6.3 | ≥ 0.3.0, < 1.5.1 | ≥ 1.8.0, < 1.8.1
Tokio1 product
- tokio≥ 0.3.0, < 1.5.1 | ≥ 1.6.0, < 1.6.3 | ≥ 1.7.0, < 1.7.2 | 1.8.0
2 vendors · 2 products
References
6 links- rustsec.org/advisories/RUSTSEC-2021-0072.htmlX Refsource MISCWEBAdvisoryExploitIssue TrackingPatchThird Party Advisory
- raw.githubusercontent.com/rustsec/advisory-db/main/crates/tokio/RUSTSEC-2021-0072.mdX Refsource MISCWEBThird Party Advisory
- github.com/tokio-rs/tokioPACKAGE
- crates.io/crates/tokioPACKAGE