8.1high
Data races in unicycle
- Severity
- 8.1high CVSS:3.1 by NVD
- Exploit likelihood
- 0.77% (higher than 56% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-686f-ch3r-xwmhRUSTSEC-2020-0116
Description
An issue was discovered in the unicycle crate before 0.7.1 for Rust. PinSlab<T> and Unordered<T, S> do not have bounds on their Send and Sync traits.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| unicycle (crates.io) | before 0.7.1, from 0.0.0-0 before 0.7.1 | GitHub Advisory Database, RustSec Advisory Database |
| unicycle_project unicycle | before 0.7.1 | NVD |
All scores
| GitHub | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| RustSec Advisory Database | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 6.8medium CVSS:2.0 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
Classification
What each source says
CVE List
An issue was discovered in the unicycle crate before 0.7.1 for Rust. PinSlab<T> and Unordered<T, S> do not have bounds on their Send and Sync traits.
GitHub Advisory Database
Affected versions of this crate unconditionally implemented Send & Sync for types PinSlab<T> & Unordered<T, S>. This allows sending non-Send types to other threads and concurrently accessing non-Sync types from multiple threads.
This can result in a data race & memory corruption when types that provide internal mutability without synchronization are contained within PinSlab<T> or Unordered<T, S> and accessed concurrently from multiple threads.
The flaw was corrected in commits 92f40b4 & 6a6c367 by adding trait bound T: Send to Send impls for PinSlab<T> & Unordered<T, S> and adding T: Sync to Sync impls for PinSlab<T> & Unordered<T, S>.
NVD (es)
Se ha detectado un problema en la crate unicycle versiones anteriores a 0.7.1 para Rust. Las funciones PinSlab(T) y Unordered(T, S) no presenten límites en sus rasgos Send y Sync
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2020-36436 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-686f-ch3r-xwmh changed 2023-11-08 | CC-BY-4.0 |
| RustSec Advisory Database | RUSTSEC-2020-0116 changed 2023-11-08 | CC0-1.0 |
| NVD | CVE-2020-36436 changed 2026-06-17 | Public domain |