What’s Vulnerable › Vulnerabilities
CVE-2017-20004
- Severity: medium (CVSS 5.9 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.8% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2021-04-14 · updated 2026-06-17
- Weakness: CWE-362
Description
In the standard library in Rust before 1.19.0, there is a synchronization problem in the MutexGuard object. MutexGuards can be used across threads with any types, allowing for memory safety issues through race conditions.
Affected products
- rust-lang rust: before 1.19.0 — fixed in 1.19.0
How to fix
Upgrade to a fixed version: rust-lang rust 1.19.0. Check the vendor advisory for mitigations.
References
- https://github.com/rust-lang/rust/issues/41622
- https://github.com/rust-lang/rust/pull/41624
- https://github.com/rust-lang/rust/issues/41622
- https://github.com/rust-lang/rust/pull/41624
Get alerted when CVE-2017-20004 or the next vulnerability affects your stack