{"id":"CVE-2020-36218","aliases":["CVE-2020-36218","GHSA-r7rv-2rph-hvhj","RUSTSEC-2020-0112"],"related":[],"kind":"vulnerability","state":"published","title":"Improper synchronization in buttplug","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"`ButtplugFutureStateShared<T>` implements `Send` & `Sync` regardless of `T`.\n\nIf `T: !Send` for `ButtplugFutureStateShared<T>`, it is possible to move non-Send types across thread boundaries (e.g. `T`=`Rc<T>`) and lead to undefined behavior.\nIf `T: !Sync` for `ButtplugFutureStateShared<T>`, it is possible to cause data race to `T` (e.g. `T`=`Arc<Cell<_>>`) and lead to undefined behavior.\n\nThe flaw was corrected in version 1.0.4 by removing manual implementations of `Send`/`Sync` for `ButtplugFutureStateShared<T>` to let rustc generate auto trait implementations with correct trait bounds on `T`.","format":"markdown","source":"rustsec"},{"lang":"es","text":"Se detectó un problema en la crate buttplug versiones anteriores a 1.0.4 para Rust.&#xa0;La función ButtplugFutureStateShared no considera apropiadamente los objetos (!Send|!Sync), conllevando a una carrera de datos","source":"nvd"}],"published":"2020-12-18T12:00:00.000Z","modified":"2026-06-17T03:15:07.083Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","score":5.9,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","score":5.9,"rating":"MEDIUM"},{"scorer":"RustSec Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","score":5.9,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","score":5.9,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:N/I:N/A:P","score":4.3,"rating":"MEDIUM"}],"cwes":["CWE-662"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.0.4"}],"ecosystem":"crates.io","package":"buttplug","purl":"pkg:cargo/buttplug","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected","fixed":"1.0.4"}],"ecosystem":"crates.io","package":"buttplug","purl":"pkg:cargo/buttplug","source":"rustsec"},{"ranges":[{"status":"affected","fixed":"1.0.4"}],"vendor":"nonpolynomial","product":"buttplug","cpe":"cpe:2.3:a:nonpolynomial:buttplug:*:*:*:*:*:rust:*:*","source":"nvd"}],"references":[{"url":"https://rustsec.org/advisories/RUSTSEC-2020-0112.html","tags":["advisory","exploit","vendor-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","rustsec","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-36218","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/buttplugio/buttplug-rs/issues/225","tags":["report","web"],"sources":["ghsa","rustsec"]},{"url":"https://github.com/buttplugio/buttplug-rs","tags":["package"],"sources":["ghsa"]},{"url":"https://crates.io/crates/buttplug","tags":["package"],"sources":["rustsec"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-36218","url":"https://www.cve.org/CVERecord?id=CVE-2020-36218","licence":"CVE Terms of Use","modified":"2024-08-04T17:23:09.582Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-r7rv-2rph-hvhj","url":"https://github.com/advisories/GHSA-r7rv-2rph-hvhj","licence":"CC-BY-4.0","modified":"2023-11-08T04:03:42.151Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2020-0112","url":"https://rustsec.org/advisories/RUSTSEC-2020-0112.html","licence":"CC0-1.0","modified":"2023-11-08T04:03:42.151Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-36218","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-36218","licence":"Public domain","modified":"2026-06-17T03:15:07.083Z"}],"updatedAt":"2026-11-25T22:57:57.194Z","epss":{"score":0.01121,"percentile":0.67108,"date":"2026-12-01T12:00:22.000Z"}}