Security mailing lists by PureSourceCode

CVE-2021-38191

MEDIUM 5.9CVSS 3.1

Race condition in tokio

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.

Published
8 Aug 2021
Last modified
17 Jun 2026
Assigned by
cve@mitre.org
NVD status
Modified
Weakness
CWE-362CWE-366
Also known as
GHSA-2grh-hm3w-w7hvRUSTSEC-2021-0072
Sources
NVDJSONOSV GHSA-2grh-hm3w-w7hvJSONOSV RUSTSEC-2021-0072JSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 MEDIUM 5.9 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
OSV GitHub CVSS 3.1 MEDIUM 5.9 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD nvd@nist.gov (Primary) CVSS 2.0 MEDIUM 4.3 AV:N/AC:M/Au:N/C:N/I:N/A:P

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD tokio tokio
cpe:2.3:a:tokio:tokio:*:*:*:*:*:rust:*:*
>= 0.3.0, < 1.5.1 1.5.1
NVD tokio tokio
cpe:2.3:a:tokio:tokio:*:*:*:*:*:rust:*:*
>= 1.6.0, < 1.6.3 1.6.3
NVD tokio tokio
cpe:2.3:a:tokio:tokio:*:*:*:*:*:rust:*:*
>= 1.7.0, < 1.7.2 1.7.2
NVD tokio tokio
cpe:2.3:a:tokio:tokio:1.8.0:*:*:*:*:*:*:*
= 1.8.0
OSV crates.io tokio >= 1.8.0, < 1.8.1 1.8.1
OSV crates.io tokio >= 1.7.0, < 1.7.2 1.7.2
OSV crates.io tokio >= 1.6.0, < 1.6.3 1.6.3
OSV crates.io tokio >= 0.3.0, < 1.5.1 1.5.1
OSV crates.io tokio >= 0.3.0, < 1.5.1; >= 1.6.0, < 1.6.3; >= 1.7.0, < 1.7.2; >= 1.8.0, < 1.8.1 1.5.1, 1.6.3, 1.7.2, 1.8.1

References

History

  • 25 Nov 2026 20:33 UTC · NVD: first stored (published 8 Aug 2021)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 7 Jul 2021)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 25 Aug 2021)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.