Feed
8.1HIGH
CVE-2021-45710Race Condition in tokio
A high-severity vulnerability reachable over the network, needing no privileges and no user interaction. EPSS estimates a 1.2% chance of exploitation in the next 30 days. A fixed version is named.
- Exploited in the wild
- Not in KEV
- EPSS
- 1.2%
- percentile 69%
- Fix
- Named by a source
- CVE published 27 Dec 2021
Reference
None of the "Needs attention" rules apply right now.
EPSS 1.2% (+1) · Network attack vector (+10) · No privileges required (+5) · No user interaction (+5)
Immediate actions
- tokio (crates.io): upgrade to 1.8.4 / 1.13.1 or later on your release line.
Who should check
tokio (crates.io) pkg:cargo/tokio
- Affected>= 0.1.14, < 1.8.4Fixed in1.8.4OSV (RUSTSEC-2021-0124)
- Affected>= 1.9.0, < 1.13.1Fixed in1.13.1OSV (RUSTSEC-2021-0124)
Confirmed facts
- CVSS
- 8.1 HIGH (version 3.1)
- Score from
- GitHub Advisory Database (GHSA-fg7r-2g4j-5cgr)
- Attack vector
- network
- Attack complexity
- high
- Privileges required
- none
- User interaction
- none
- Weakness
- CWE-362
Unknowns
- We show one CVSS score. Other sources may score this CVE differently.
Advisory text
Quoted from the source advisory (untrusted)If a tokio::sync::oneshot channel is closed (via the oneshot::Receiver::close method), a data race may occur if the oneshot::Sender::send method is called while the corresponding oneshot::Receiver is awaited or calling try_recv. When these methods are called concurrently on a closed channel, the two halves of the channel can concurrently access a shared memory location, resulting in a data race. This has been observed to cause memory corruption. Note that the race only occurs when both halves of the channel are used after the Receiver half has called close. Code where close is not used, or where the Receiver is not awaited and try_recv is not called after calling close, is not affected.
Update history
No events recorded. Our history starts on 1 Jan 2025.
References
- advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2021-45710
- otherhttps://github.com/tokio-rs/tokio/issues/4225
- otherhttps://github.com/tokio-rs/tokio
- otherhttps://raw.githubusercontent.com/rustsec/advisory-db/main/crates/tokio/RUSTSEC-2021-0124.md
- advisoryhttps://rustsec.org/advisories/RUSTSEC-2021-0124.html
- otherhttps://crates.io/crates/tokio
Sources
- EPSS by FIRST.org, Free to use, attribution requested. Scores generated by Empirical Security.
- GHSA-fg7r-2g4j-5cgr (GitHub Advisory Database), CC BY 4.0.
- RUSTSEC-2021-0124 (RustSec Advisory Database), CC0 1.0. Advisories imported from GitHub: CC BY 4.0.
- OSV.dev, Per database.
This page is our own presentation: records are shortened, normalised and merged. Licences
Last checked: kev 20 min ago · osv 20 min ago · nvd 81 min ago · epss 20 min ago · JSON · ask via MCP: explain_vulnerability
Also known as GHSA-fg7r-2g4j-5cgr, RUSTSEC-2021-0124