CVE-2020-36460
JSON

8.1high

Data races in model

Severity
8.1high CVSS:3.1 by NVD
Exploit likelihood
1.10% (higher than 66% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-mxv6-q98x-h958RUSTSEC-2020-0140

Description

An issue was discovered in the model crate through 2020-11-10 for Rust. The Shared data structure has an implementation of the Send and Sync traits without regard for the inner type.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
model (crates.io)up to 0.1.2, from 0.0.0-0GitHub Advisory Database, RustSec Advisory Database
model_project modelup to 2020-11-10NVD

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 model crate through 2020-11-10 for Rust. The Shared data structure has an implementation of the Send and Sync traits without regard for the inner type.

GitHub Advisory Database

Shared data structure in model crate implements Send and Sync traits regardless of the inner type. This allows safe Rust code to trigger a data race, which is undefined behavior in Rust.

Users are advised to treat Shared as an unsafe type. It should not be used outside of the testing context, and care must be taken so that the testing code does not have a data race besides a race condition that is expected to be caught by the test.

RustSec Advisory Database

Shared data structure in model crate implements Send and Sync traits regardless of the inner type. This allows safe Rust code to trigger a data race, which is undefined behavior in Rust.

Users are advised to treat Shared as an unsafe type. It should not be used outside of the testing context, and care must be taken so that the testing code does not have a data race besides a race condition that is expected to be caught by the test.

Check the Rustonomicon for the difference between a data race and a general race condition.

NVD (es)

Se ha detectado un problema en la crate model hasta el 10-11-2020 para Rust. La estructura de datos Shared presenta una implementación de los rasgos Send y Sync sin tener en cuenta el tipo interno

References

Sources

SourceRecordLicence
CVE ListCVE-2020-36460 changed 2024-08-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-mxv6-q98x-h958 changed 2023-11-08CC-BY-4.0
RustSec Advisory DatabaseRUSTSEC-2020-0140 changed 2023-11-08CC0-1.0
NVDCVE-2020-36460 changed 2026-06-17Public domain