Live threats

All CVEs / Tokio

CVE-2021-38191Tokio

Medium 5.9 No auth needed

Priority
50
CVSS 3.1
5.9
EPSS
0.8%
probability of exploitation in 30 days · percentile 55
Auth required
No
Published
Aug 8, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-362
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Tokio.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
crates.io tokio ≥ 1.8.0 < 1.8.1 1.8.1 cargo update -p tokio --precise 1.8.1
crates.io tokio ≥ 1.7.0 < 1.7.2 1.7.2 cargo update -p tokio --precise 1.7.2
crates.io tokio ≥ 1.6.0 < 1.6.3 1.6.3 cargo update -p tokio --precise 1.6.3
crates.io tokio ≥ 0.3.0 < 1.5.1 1.5.1 cargo update -p tokio --precise 1.5.1
crates.io tokio ≥ 0.3.0 < 1.5.1 1.5.1 cargo update -p tokio --precise 1.5.1
crates.io tokio ≥ 1.6.0 < 1.6.3 1.6.3 cargo update -p tokio --precise 1.6.3
crates.io tokio ≥ 1.7.0 < 1.7.2 1.7.2 cargo update -p tokio --precise 1.7.2
crates.io tokio ≥ 1.8.0 < 1.8.1 1.8.1 cargo update -p tokio --precise 1.8.1

Per OSV / GitHub Advisories (GHSA-2grh-hm3w-w7hv, RUSTSEC-2021-0072). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
tokiotokio≥ 0.3.0 < 1.5.1
tokiotokio≥ 1.6.0 < 1.6.3
tokiotokio≥ 1.7.0 < 1.7.2
tokiotokio1.8.0

Official sources

References

Links published by the sources. Open them with care.