# CVE-2021-45710: Race Condition in tokio

- Severity: High 8.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/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): 1.24%, higher than 69% of CVEs (2026-12-01)
- Published: 2021-11-16T12:00:00.000Z
- Modified: 2026-06-17T04:13:59.733Z
- Also known as: GHSA-fg7r-2g4j-5cgr, RUSTSEC-2021-0124
- Weaknesses: CWE-362
- Assigned by: mitre

## Description

An issue was discovered in the tokio crate before 1.8.4, and 1.9.x through 1.13.x before 1.13.1, for Rust. In certain circumstances involving a closed oneshot channel, there is a data race and memory corruption.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- tokio (crates.io): from 0.1.14 before 1.8.4; from 1.9.0 before 1.13.1
- tokio tokio: from 0.1.14 before 1.8.4; from 1.9.0 before 1.13.1

## Every score

- GitHub: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 5.1 Medium `AV:N/AC:H/Au:N/C:P/I:P/A:P`

## References

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

## Sources

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

---

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