# CVE-2021-38191: Race condition in tokio

- Severity: Medium 5.9 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.83%, higher than 54% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-07-07T12:00:00.000Z
- Modified: 2026-06-17T04:01:43.753Z
- Also known as: GHSA-2grh-hm3w-w7hv, RUSTSEC-2021-0072
- Weaknesses: CWE-362, CWE-366
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- tokio (crates.io): from 1.8.0 before 1.8.1; from 1.7.0 before 1.7.2; from 1.6.0 before 1.6.3; from 0.3.0 before 1.5.1
- tokio 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

## Every score

- GitHub: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:N/A:P`

## References

- <https://rustsec.org/advisories/RUSTSEC-2021-0072.html> (exploit, advisory, issue-tracking, patch, third-party-advisory, web)
- <https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/tokio/RUSTSEC-2021-0072.md> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-38191> (advisory)
- <https://github.com/tokio-rs/tokio/issues/3929> (report, web)
- <https://github.com/tokio-rs/tokio> (package)
- <https://crates.io/crates/tokio> (package)

## Sources

- CVE List: [CVE-2021-38191](https://www.cve.org/CVERecord?id=CVE-2021-38191), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-2grh-hm3w-w7hv](https://github.com/advisories/GHSA-2grh-hm3w-w7hv), CC-BY-4.0, modified 2023-11-08
- RustSec Advisory Database: [RUSTSEC-2021-0072](https://rustsec.org/advisories/RUSTSEC-2021-0072.html), CC0-1.0, modified 2023-11-08
- NVD: [CVE-2021-38191](https://nvd.nist.gov/vuln/detail/CVE-2021-38191), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-38191 · Whole record: https://cve.day/CVE-2021-38191.json · Rebuilt by cve.day 2026-11-25T22:58:03.054Z
