8.1high
Data races in bunch
- Severity
- 8.1high CVSS:3.1 by NVD
- Exploit likelihood
- 1.25% (higher than 70% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-jwph-qp5h-f9wjRUSTSEC-2020-0130
Description
An issue was discovered in the bunch crate through 2020-11-12 for Rust. There are unconditional implementations of Send and Sync for Bunch<T>.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| bunch (crates.io) | up to 0.1.0, from 0.0.0-0 | GitHub Advisory Database, RustSec Advisory Database |
| bunch_project bunch | up to 2020-11-12 | 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 bunch crate through 2020-11-12 for Rust. There are unconditional implementations of Send and Sync for Bunch<T>.
GitHub Advisory Database
An issue was discovered in the bunch crate through 2020-11-12 for Rust.
Affected versions of this crate unconditionally implements Send/Sync for Bunch<T>.
This allows users to insert T: !Sync to Bunch<T>. It is possible to create a data race to a T: !Sync by invoking the Bunch::get() API (which returns &T) from multiple threads. It is also possible to send T: !Send to other threads by inserting T inside Bunch<T> and sending Bunch<T> to another thread, allowing to create a data race by inserting types like T = Rc<_>.
Such data races can lead to memory corruption.
RustSec Advisory Database
Affected versions of this crate unconditionally implements Send/Sync for Bunch<T>.
This allows users to insert T: !Sync to Bunch<T>. It is possible to create a data race to a T: !Sync by invoking the Bunch::get() API (which returns &T) from multiple threads. It is also possible to send T: !Send to other threads by inserting T inside Bunch<T> and sending Bunch<T> to another thread, allowing to create a data race by inserting types like T = Rc<_>.
Such data races can lead to memory corruption.
NVD (es)
Se ha detectado un problema en la crate bunch hasta el 12-11-2020 para Rust. Se presentan implementaciones incondicionales de Send y Sync para la función Bunch(T)
References
| https://rustsec.org/advisories/RUSTSEC-2020-0130.html | advisory, exploit, patch, third-party-advisory, web | |
| https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/bunch/RUSTSEC-2020-0130.md | third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2020-36450 | advisory | |
| https://github.com/krl/bunch/issues/1 | report, web | |
| https://github.com/krl/bunch | package | |
| https://crates.io/crates/bunch | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2020-36450 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-jwph-qp5h-f9wj changed 2023-11-08 | CC-BY-4.0 |
| RustSec Advisory Database | RUSTSEC-2020-0130 changed 2023-11-08 | CC0-1.0 |
| NVD | CVE-2020-36450 changed 2026-06-17 | Public domain |