CVE-2017-20004 json
In the standard library in Rust before 1.19.0, there is a synchronization problem in the MutexGuard object.
published 2021-04-14 5 y ago modified 2026-06-17 4 mo ago also EUVD-2017-11019
- cvss
- 5.9
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.8%
- EPSS 0.8% chance of exploitation in 30 days, percentile 56%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- rust-lang rust 1.19.0
- rustc Debian 14, Debian 13, Debian 12 1.19.0+dfsg3-2
debian advisories DEBIAN-CVE-2017-20004
- github.com/rust-lang/rust#41624 pull request
- github.com/rust-lang/rust/issues/41622 advisory
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2017-20004 updated cvss 5.9
rust: synchronization problem in the MutexGuard object
-
Red Hat Enterprise Linux 8 rls, rust, cargo, clippy, rustfmt, rust-gdb, +8 more Red Hat Enterprise Linux 9 rust, cargo, clippy, rustfmt, rust-gdb, rust-src, +8 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
0.80% chance of exploitation in the next 30 days, higher than 56% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | 2.0 | 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Classification
- Weakness
-
- CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization
References
-
github.com
/rust-lang/rust/pull/41624
patch, third-party-advisory
-
github.com
/rust-lang/rust/issues/41622
patch, third-party-advisory
Sources
- CVE List CVE-2017-20004
- NVD CVE-2017-20004
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.