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 package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| model (crates.io) | up to 0.1.2, from 0.0.0-0 | GitHub Advisory Database, RustSec Advisory Database |
| model_project model | up to 2020-11-10 | 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 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
| https://rustsec.org/advisories/RUSTSEC-2020-0140.html | advisory, exploit, issue-tracking, patch, third-party-advisory, web | |
| https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/model/RUSTSEC-2020-0140.md | third-party-advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2020-36460 | advisory | |
| https://github.com/spacejam/model/issues/3 | report, web | |
| https://github.com/spacejam/model | package | |
| https://crates.io/crates/model | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2020-36460 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-mxv6-q98x-h958 changed 2023-11-08 | CC-BY-4.0 |
| RustSec Advisory Database | RUSTSEC-2020-0140 changed 2023-11-08 | CC0-1.0 |
| NVD | CVE-2020-36460 changed 2026-06-17 | Public domain |