CVE-2020-36436
JSON

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 packageVersionsReported by
Unspecified productn/aCVE List
unicycle (crates.io)before 0.7.1, from 0.0.0-0 before 0.7.1GitHub Advisory Database, RustSec Advisory Database
unicycle_project unicyclebefore 0.7.1NVD

All scores

GitHub8.1high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
RustSec Advisory Database8.1high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD8.1high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD6.8medium CVSS:2.0AV: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

SourceRecordLicence
CVE ListCVE-2020-36436 changed 2024-08-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-686f-ch3r-xwmh changed 2023-11-08CC-BY-4.0
RustSec Advisory DatabaseRUSTSEC-2020-0116 changed 2023-11-08CC0-1.0
NVDCVE-2020-36436 changed 2026-06-17Public domain