reffers
Affected
- introduced
0.0.0-0, fixed0.6.1(semver)
Fixed versions
0.6.1
Fix
- Fixed version
0.6.1cargo update -p reffers --precise 0.6.1
Advisory
Also known as: CVE-2020-36203, GHSA-39xg-8p43-h76x
Unsound: can make ARefss contain a !Send, !Sync object.
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 (https://github.com/diwic/reffers-rs/commit/6dd7ca0d50f2464df708975cdafcfaeeb6d41c66) by adding trait bound V: Send + Sync to ARefss::map() API.
Medium Basis: CVSS v3 score 4.7, vector CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
0.0.0-0, fixed 0.6.1 (semver)0.6.1
0.6.1cargo update -p reffers --precise 0.6.1Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: RustSec Advisory Database · CC0-1.0