{"id":"CVE-2020-36218","aliases":["EUVD-2021-1861","GHSA-r7rv-2rph-hvhj","RUSTSEC-2020-0112"],"status":"published","title":"Improper synchronization in buttplug","description":"An issue was discovered in the buttplug crate before 1.0.4 for Rust. ButtplugFutureStateShared does not properly consider (!Send|!Sync) objects, leading to a data race.","severity":{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-11","score":0.01121,"percentile":0.66605,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-662"],"published":"2020-12-18T12:00:00Z","modified":"2026-10-24T10:30:15Z","fixes":[{"ecosystem":"crates.io","package":"buttplug","fixed_in":["1.0.4"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"crates.io","package":"buttplug","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.4"}]}]},{"source":"osv","ecosystem":"crates.io","package":"buttplug","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.0.4"}]}]},{"source":"osv","ecosystem":"crates.io","package":"buttplug","ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"},{"fixed":"1.0.4"}]}]}],"products":[{"vendor":"nonpolynomial","product":"buttplug"}],"references":[{"url":"https://rustsec.org/advisories/RUSTSEC-2020-0112.html","tags":["x_refsource_MISC","x_transferred","Exploit","Vendor Advisory","evidence","web","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-36218","tags":["advisory"]},{"url":"https://github.com/buttplugio/buttplug-rs/issues/225","tags":["web","report"]},{"url":"https://github.com/advisories/GHSA-r7rv-2rph-hvhj"},{"url":"https://github.com/buttplugio/buttplug-rs","tags":["package"]},{"url":"https://crates.io/crates/buttplug","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2020-36218","description":"An issue was discovered in the buttplug crate before 1.0.4 for Rust. ButtplugFutureStateShared does not properly consider (!Send|!Sync) objects, leading to a data race.","status":"published","published":"2021-01-22T09:04:13Z","modified":"2024-08-04T17:23:09.582Z","updated_at":"2026-11-02T14:35:55.128961Z"}],"euvd":[{"id":"EUVD-2021-1861","description":"An issue was discovered in the buttplug crate before 1.0.4 for Rust. ButtplugFutureStateShared does not properly consider (!Send|!Sync) objects, leading to a data race.","status":"published","published":"2021-01-22T09:04:13Z","modified":"2024-08-04T17:23:09Z","updated_at":"2026-11-03T03:07:03.484914Z"}],"ghsa":[{"id":"GHSA-r7rv-2rph-hvhj","title":"Improper synchronization in buttplug","description":"An issue was discovered in the buttplug crate before 1.0.4 for Rust. ButtplugFutureStateShared does not properly consider (!Send|!Sync) objects, leading to a data race.","status":"published","published":"2021-08-25T20:51:45Z","modified":"2023-01-11T05:05:30Z","cvss":[{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"medium"}],"cwes":["CWE-662"],"updated_at":"2026-11-02T14:36:12.361159Z"}],"nvd":[{"id":"CVE-2020-36218","description":"An issue was discovered in the buttplug crate before 1.0.4 for Rust. ButtplugFutureStateShared does not properly consider (!Send|!Sync) objects, leading to a data race.","status":"published","published":"2021-01-26T18:15:56.507Z","modified":"2026-06-17T03:15:07.083Z","cvss":[{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"medium","assessor":"primary"},{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:N/I:N/A:P","level":"medium","assessor":"primary"}],"updated_at":"2026-11-02T14:06:30.596418Z"}],"osv":[{"id":"CVE-2020-36218","description":"An issue was discovered in the buttplug crate before 1.0.4 for Rust. ButtplugFutureStateShared does not properly consider (!Send|!Sync) objects, leading to a data race.","status":"published","published":"2021-01-26T18:15:56.507Z","modified":"2026-10-24T10:30:15.713854166Z","cvss":[{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"medium"}],"updated_at":"2026-11-02T15:44:16.612899Z"},{"id":"GHSA-r7rv-2rph-hvhj","title":"Improper synchronization in buttplug","description":"An issue was discovered in the buttplug crate before 1.0.4 for Rust. ButtplugFutureStateShared does not properly consider (!Send|!Sync) objects, leading to a data race.","status":"published","published":"2021-08-25T20:51:45Z","modified":"2023-11-08T04:03:42.151494Z","cvss":[{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"medium"}],"cwes":["CWE-662"],"updated_at":"2026-11-02T15:46:55.480549Z"},{"id":"RUSTSEC-2020-0112","title":"ButtplugFutureStateShared allows data race to (!Send|!Sync) objects","description":"`ButtplugFutureStateShared\u003cT\u003e` implements `Send` \u0026 `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`.","status":"published","published":"2020-12-18T12:00:00Z","modified":"2023-11-08T04:03:42.151494Z","cvss":[{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"medium"}],"updated_at":"2026-11-02T15:53:39.492624Z"}]}}
