CVE-2021-45710
HIGH 8.1CVSS 3.1Race Condition in tokio
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.
- Published
- 27 Dec 2021
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-362
- Also known as
- GHSA-fg7r-2g4j-5cgrRUSTSEC-2021-0124
- Sources
- NVDJSONOSV GHSA-fg7r-2g4j-5cgrJSONOSV RUSTSEC-2021-0124JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.1 | AV:N/AC:H/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | tokio | tokiocpe:2.3:a:tokio:tokio:*:*:*:*:*:rust:*:* |
>= 0.1.14, < 1.8.4 | 1.8.4 |
| NVD | tokio | tokiocpe:2.3:a:tokio:tokio:*:*:*:*:*:rust:*:* |
>= 1.9.0, < 1.13.1 | 1.13.1 |
| OSV | crates.io | tokio | >= 0.1.14, < 1.8.4 | 1.8.4 |
| OSV | crates.io | tokio | >= 1.9.0, < 1.13.1 | 1.13.1 |
| OSV | crates.io | tokio | >= 0.1.14, < 1.8.4; >= 1.9.0, < 1.13.1 | 1.8.4, 1.13.1 |
References
- https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/tokio/RUSTSEC-2021-0124.md · Third Party Advisory, WEB
- https://rustsec.org/advisories/RUSTSEC-2021-0124.html · Patch, Third Party Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2021-45710 · ADVISORY
- https://github.com/tokio-rs/tokio/issues/4225 · 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 27 Dec 2021)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 16 Nov 2021)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 6 Jan 2022)