CVE-2021-38191
MEDIUM 5.9CVSS 3.1Race condition in tokio
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.
- Published
- 8 Aug 2021
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-362CWE-366
- Also known as
- GHSA-2grh-hm3w-w7hvRUSTSEC-2021-0072
- Sources
- NVDJSONOSV GHSA-2grh-hm3w-w7hvJSONOSV RUSTSEC-2021-0072JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.3 | AV:N/AC:M/Au:N/C:N/I:N/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | tokio | tokiocpe:2.3:a:tokio:tokio:*:*:*:*:*:rust:*:* |
>= 0.3.0, < 1.5.1 | 1.5.1 |
| NVD | tokio | tokiocpe:2.3:a:tokio:tokio:*:*:*:*:*:rust:*:* |
>= 1.6.0, < 1.6.3 | 1.6.3 |
| NVD | tokio | tokiocpe:2.3:a:tokio:tokio:*:*:*:*:*:rust:*:* |
>= 1.7.0, < 1.7.2 | 1.7.2 |
| NVD | tokio | tokiocpe:2.3:a:tokio:tokio:1.8.0:*:*:*:*:*:*:* |
= 1.8.0 | |
| OSV | crates.io | tokio | >= 1.8.0, < 1.8.1 | 1.8.1 |
| OSV | crates.io | tokio | >= 1.7.0, < 1.7.2 | 1.7.2 |
| OSV | crates.io | tokio | >= 1.6.0, < 1.6.3 | 1.6.3 |
| OSV | crates.io | tokio | >= 0.3.0, < 1.5.1 | 1.5.1 |
| OSV | crates.io | tokio | >= 0.3.0, < 1.5.1; >= 1.6.0, < 1.6.3; >= 1.7.0, < 1.7.2; >= 1.8.0, < 1.8.1 | 1.5.1, 1.6.3, 1.7.2, 1.8.1 |
References
- https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/tokio/RUSTSEC-2021-0072.md · Third Party Advisory, WEB
- https://rustsec.org/advisories/RUSTSEC-2021-0072.html · Exploit, Issue Tracking, Patch, Third Party Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2021-38191 · ADVISORY
- https://github.com/tokio-rs/tokio/issues/3929 · WEB, REPORT
- https://github.com/tokio-rs/tokio · PACKAGE
- https://crates.io/crates/tokio · PACKAGE
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 8 Aug 2021)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 7 Jul 2021)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 25 Aug 2021)