{"id":"RUSTSEC-2020-0112","summary":"ButtplugFutureStateShared allows data race to (!Send|!Sync) objects","details":"`ButtplugFutureStateShared\u003cT\u003e` implements `Send` & `Sync` regardless of `T`.\n\nIf `T: !Send` for `ButtplugFutureStateShared\u003cT\u003e`, it is possible to move non-Send types across thread boundaries (e.g. `T`=`Rc\u003cT\u003e`) and lead to undefined behavior.\nIf `T: !Sync` for `ButtplugFutureStateShared\u003cT\u003e`, it is possible to cause data race to `T` (e.g. `T`=`Arc\u003cCell\u003c_\u003e\u003e`) and lead to undefined behavior.\n\nThe flaw was corrected in version 1.0.4 by removing manual implementations of `Send`/`Sync` for `ButtplugFutureStateShared\u003cT\u003e` to let rustc generate auto trait implementations with correct trait bounds on `T`.","aliases":["CVE-2020-36218","GHSA-r7rv-2rph-hvhj"],"modified":"2023-11-08T04:03:42.151494Z","published":"2020-12-18T12:00:00Z","database_specific":{"license":"CC0-1.0"},"references":[{"type":"PACKAGE","url":"https://crates.io/crates/buttplug"},{"type":"ADVISORY","url":"https://rustsec.org/advisories/RUSTSEC-2020-0112.html"},{"type":"REPORT","url":"https://github.com/buttplugio/buttplug-rs/issues/225"}],"affected":[{"package":{"name":"buttplug","ecosystem":"crates.io","purl":"pkg:cargo/buttplug"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"},{"fixed":"1.0.4"}]}],"ecosystem_specific":{"affected_functions":null,"affects":{"arch":[],"functions":[],"os":[]}},"database_specific":{"categories":["memory-corruption","thread-safety"],"cvss":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","informational":null,"source":"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2020-0112.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}