{"id":"CVE-2020-36203","aliases":["EUVD-2021-1540","GHSA-39xg-8p43-h76x","RUSTSEC-2020-0094"],"status":"published","title":"Data races in reffers","description":"An issue was discovered in the reffers crate through 2020-12-01 for Rust. ARefss can contain a !Send,!Sync object, leading to a data race and memory corruption.","severity":{"version":"3.1","score":4.7,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-11","score":0.00245,"percentile":0.15905,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-362","CWE-787"],"published":"2020-12-01T12:00:00Z","modified":"2026-06-17T03:15:00Z","fixes":[{"ecosystem":"crates.io","package":"reffers","fixed_in":["0.6.1"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"crates.io","package":"reffers","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.6.1"}]}]},{"source":"osv","ecosystem":"crates.io","package":"reffers","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.6.1"}]}]},{"source":"osv","ecosystem":"crates.io","package":"reffers","ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"},{"fixed":"0.6.1"}]}]}],"products":[{"vendor":"reffers_project","product":"reffers"}],"references":[{"url":"https://rustsec.org/advisories/RUSTSEC-2020-0094.html","tags":["x_refsource_MISC","x_transferred","Exploit","Vendor Advisory","web","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-36203","tags":["advisory"]},{"url":"https://github.com/diwic/reffers-rs/issues/7","tags":["web","report"]},{"url":"https://github.com/diwic/reffers-rs/commit/6dd7ca0d50f2464df708975cdafcfaeeb6d41c66","tags":["web"]},{"url":"https://github.com/advisories/GHSA-39xg-8p43-h76x"},{"url":"https://github.com/diwic/reffers-rs","tags":["package"]},{"url":"https://crates.io/crates/reffers","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2020-36203","description":"An issue was discovered in the reffers crate through 2020-12-01 for Rust. ARefss can contain a !Send,!Sync object, leading to a data race and memory corruption.","status":"published","published":"2021-01-22T09:07:40Z","modified":"2024-08-04T17:23:09.59Z","updated_at":"2026-11-02T14:35:55.128961Z"}],"euvd":[{"id":"EUVD-2021-1540","description":"An issue was discovered in the reffers crate through 2020-12-01 for Rust. ARefss can contain a !Send,!Sync object, leading to a data race and memory corruption.","status":"published","published":"2021-01-22T09:07:40Z","modified":"2024-08-04T17:23:09Z","updated_at":"2026-11-03T03:07:03.484914Z"}],"ghsa":[{"id":"GHSA-39xg-8p43-h76x","title":"Data races in reffers","description":"ARefss\u003c'a, V\u003e is a type that is assumed to contain objects that are Send + Sync.\n\nIn the affected versions of this crate, Send/Sync traits are unconditionally implemented for ARefss\u003c'a, V\u003e.\n\nBy using the ARefss::map() API, we can insert a !Send or !Sync object into ARefss\u003c'a, V\u003e. After that, it is possible to create a data race to the inner object of ARefss\u003c'a, V\u003e, which can lead to undefined behavior \u0026 memory corruption.\n\nThe flaw was corrected in commit `6dd7ca0` by adding trait bound V: Send + Sync to ARefss::map() API.","status":"published","published":"2021-08-25T20:51:40Z","modified":"2023-06-13T20:28:37Z","cvss":[{"version":"3.1","score":4.7,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","level":"medium"}],"cwes":["CWE-362","CWE-787"],"updated_at":"2026-11-02T14:36:54.225318Z"}],"nvd":[{"id":"CVE-2020-36203","description":"An issue was discovered in the reffers crate through 2020-12-01 for Rust. ARefss can contain a !Send,!Sync object, leading to a data race and memory corruption.","status":"published","published":"2021-01-26T18:15:55.553Z","modified":"2026-06-17T03:15:00.03Z","cvss":[{"version":"3.1","score":4.7,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","level":"medium","assessor":"primary"},{"version":"2.0","score":1.9,"vector":"AV:L/AC:M/Au:N/C:N/I:N/A:P","level":"low","assessor":"primary"}],"cwes":["CWE-362","CWE-787"],"updated_at":"2026-11-02T14:06:30.596418Z"}],"osv":[{"id":"GHSA-39xg-8p43-h76x","title":"Data races in reffers","description":"ARefss\u003c'a, V\u003e is a type that is assumed to contain objects that are Send + Sync.\n\nIn the affected versions of this crate, Send/Sync traits are unconditionally implemented for ARefss\u003c'a, V\u003e.\n\nBy using the ARefss::map() API, we can insert a !Send or !Sync object into ARefss\u003c'a, V\u003e. After that, it is possible to create a data race to the inner object of ARefss\u003c'a, V\u003e, which can lead to undefined behavior \u0026 memory corruption.\n\nThe flaw was corrected in commit `6dd7ca0` by adding trait bound V: Send + Sync to ARefss::map() API.","status":"published","published":"2021-08-25T20:51:40Z","modified":"2023-11-08T04:03:41.295805Z","cvss":[{"version":"3.1","score":4.7,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","level":"medium"}],"cwes":["CWE-362","CWE-787"],"updated_at":"2026-11-02T15:46:35.406455Z"},{"id":"RUSTSEC-2020-0094","title":"Unsound: can make `ARefss` contain a !Send, !Sync object.","description":"`ARefss\u003c'a, V\u003e` is a type that is assumed to contain objects that are `Send + Sync`.\n\nIn the affected versions of this crate,\n`Send`/`Sync` traits are unconditionally implemented for `ARefss\u003c'a, V\u003e`.\n\nBy using the `ARefss::map()` API, we can insert a `!Send` or `!Sync` object into `ARefss\u003c'a, V\u003e`. After that, it is possible to create a data race to the inner object of `ARefss\u003c'a, V\u003e`, which can lead to undefined behavior \u0026 memory corruption.\n\nThe 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.","status":"published","published":"2020-12-01T12:00:00Z","modified":"2023-11-08T04:03:41.295805Z","cvss":[{"version":"3.1","score":4.7,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","level":"medium"}],"updated_at":"2026-11-02T15:53:39.492624Z"}]}}
