Feed
5.9MEDIUM

CVE-2021-38191Race condition in tokio

A medium-severity vulnerability reachable over the network, needing no privileges and no user interaction. EPSS estimates a 0.8% chance of exploitation in the next 30 days. A fixed version is named.

Exploited in the wild
Not in KEV
EPSS
0.8%
percentile 55%
Priority
24/100 low
how it is computed
Fix
Named by a source
CVE published 8 Aug 2021

Reference

None of the "Needs attention" rules apply right now.

EPSS 0.8% (+1) · Network attack vector (+10) · No privileges required (+5) · No user interaction (+5)

Immediate actions

  • tokio (crates.io): upgrade to 1.8.1 / 1.7.2 / 1.6.3 / 1.5.1 or later on your release line.

Who should check

  • tokio (crates.io) pkg:cargo/tokio

    • Affected>= 1.8.0, < 1.8.1Fixed in1.8.1OSV (RUSTSEC-2021-0072)
    • Affected>= 1.7.0, < 1.7.2Fixed in1.7.2OSV (RUSTSEC-2021-0072)
    • Affected>= 1.6.0, < 1.6.3Fixed in1.6.3OSV (RUSTSEC-2021-0072)
    • Affected>= 0.3.0, < 1.5.1Fixed in1.5.1OSV (RUSTSEC-2021-0072)

Confirmed facts

CVSS
5.9 MEDIUM (version 3.1)
Score from
GitHub Advisory Database (GHSA-2grh-hm3w-w7hv)
Attack vector
network
Attack complexity
high
Privileges required
none
User interaction
none
Weakness
CWE-362, CWE-366

Unknowns

  • We show one CVSS score. Other sources may score this CVE differently.

Advisory text

Quoted from the source advisory (untrusted)When aborting a task with JoinHandle::abort, the future is dropped in the thread calling abort if the task is not currently being executed. This is incorrect for tasks spawned on a LocalSet. This can easily result in race conditions as many projects use Rc or RefCell in their Tokio tasks for better performance.

Update history

No events recorded. Our history starts on 1 Jan 2025.

References

Sources

This page is our own presentation: records are shortened, normalised and merged. Licences

Last checked: kev 16 min ago · osv 16 min ago · nvd 77 min ago · epss 15 min ago · JSON · ask via MCP: explain_vulnerability

Also known as GHSA-2grh-hm3w-w7hv, RUSTSEC-2021-0072