5.9

CVE-2021-38191: tokio Race Condition

CVSS: 5.9v3.1MediumModified
AliasesGHSA-2grh-hm3w-w7hvRUSTSEC-2021-0072
Published 08-08-2021Last modified 04-08-2024

Vulnerability summary

CVE-2021-38191 is a medium (CVSS 5.9) Race Condition vulnerability in tokio. EPSS estimates a 0.83% chance of exploitation in the next 30 days, higher than 56.9% of scored vulnerabilities. 1 public exploit is recorded.

Overall risk
34/100
0100
Medium · default modelHow is this calculated?
CVSS score
5.9/10
010
Medium · v3.1 (NVD)
EPSS score
0.83%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits1reference

Timeline

  1. 08-08-2021
    PublishedVulnerability first disclosed.
  2. 04-08-2024
    Last modifiedVulnerability information updated.

Description

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.

CVSS metrics

3 scores · 2 sources · 2 versions

EPSS trend

Probability

0.83%

Chance of exploitation in the next 30 days

Percentile

57%

Versus all other CVEs

30-day change

0.00 pp

From 0.84% on 20-09-2026

20-09-202620-10-2026
EPSS score
0.83%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

1 found
  • referenceUnverified

    Exploit Reference (rustsec.org)

    Maturity: unknown

Weaknesses

CWE · root cause

Affected systems

Crates.Io1 product
  • tokio≥ 1.7.0, < 1.7.2 | ≥ 1.6.0, < 1.6.3 | ≥ 0.3.0, < 1.5.1 | ≥ 1.8.0, < 1.8.1
Tokio1 product
  • tokio≥ 0.3.0, < 1.5.1 | ≥ 1.6.0, < 1.6.3 | ≥ 1.7.0, < 1.7.2 | 1.8.0

2 vendors · 2 products

References

6 links