logo

CVE-2020-36450 bunch

Package

Manager: cargo
Name: bunch
Vulnerable Version: >=0 <=0.1.0

Severity

Level: High

CVSS v3.1: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

CVSS v4.0: CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

EPSS: 0.00513 pctl0.65528

Details

Data races in bunch 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.

Metadata

Created: 2021-08-25T20:59:18Z
Modified: 2021-08-24T18:33:33Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/08/GHSA-jwph-qp5h-f9wj/GHSA-jwph-qp5h-f9wj.json
CWE IDs: ["CWE-362", "CWE-77"]
Alternative ID: GHSA-jwph-qp5h-f9wj
Finding: F124
Auto approve: 1