high8.1
CVE-2020-36460
Data races in model
Impact
`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.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| rust | model | <= 0.1.2 | none recorded |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Model Project | Model | through 2020-11-10 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/model/RUSTSEC-2020-0140.md
- https://rustsec.org/advisories/RUSTSEC-2020-0140.html
- https://github.com/advisories/GHSA-mxv6-q98x-h958
- https://nvd.nist.gov/vuln/detail/CVE-2020-36460
- https://github.com/spacejam/model/issues/3