Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLTM5eGctOHA0My1oNzZ4
Data races in reffers
ARefss<'a, V> is a type that is assumed to contain objects that are Send + Sync.
In the affected versions of this crate, Send/Sync traits are unconditionally implemented for ARefss<'a, V>.
By using the ARefss::map() API, we can insert a !Send or !Sync object into ARefss<'a, V>. After that, it is possible to create a data race to the inner object of ARefss<'a, V>, which can lead to undefined behavior & memory corruption.
The flaw was corrected in commit 6dd7ca0
by adding trait bound V: Send + Sync to ARefss::map() API.
JSON: https://advisories.ecosyste.ms/api/v1/advisories/MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLTM5eGctOHA0My1oNzZ4
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: about 3 years ago
Updated: over 1 year ago
CVSS Score: 4.7
CVSS vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
Identifiers: GHSA-39xg-8p43-h76x, CVE-2020-36203
References:
- https://nvd.nist.gov/vuln/detail/CVE-2020-36203
- https://github.com/diwic/reffers-rs/issues/7
- https://rustsec.org/advisories/RUSTSEC-2020-0094.html
- https://github.com/diwic/reffers-rs/commit/6dd7ca0d50f2464df708975cdafcfaeeb6d41c66
- https://github.com/advisories/GHSA-39xg-8p43-h76x
Blast Radius: 4.2
Affected Packages
cargo:reffers
Dependent packages: 0Dependent repositories: 8
Downloads: 14,789 total
Affected Version Ranges: < 0.6.1
Fixed in: 0.6.1
All affected versions: 0.2.0, 0.3.0, 0.4.0, 0.4.1, 0.4.2, 0.5.0, 0.5.1, 0.6.0
All unaffected versions: 0.6.1, 0.7.0