{"id":"RUSTSEC-2020-0138","summary":"ReaderResult should be bounded by Sync","details":"Affected versions of this crate implements `Sync` for `ReaderResult\u003cT, E\u003e` with the trait bound `T: Send, E: Send`.\n\nSince matching on the public enum `ReaderResult\u003cT, E\u003e` provides access to `&T` & `&E`,\nallowing data race to a non-Sync type `T` or `E`.\nThis can result in a memory corruption when multiple threads concurrently access `&T` or `&E`.\n\nSuggested fix for the bug is change the trait bounds imposed on `T` & `E` to be `T: Sync, E: Sync`.","aliases":["CVE-2020-36458","GHSA-f997-8gxg-r354"],"modified":"2023-11-08T04:03:46.074313Z","published":"2020-11-10T12:00:00Z","database_specific":{"license":"CC0-1.0"},"references":[{"type":"PACKAGE","url":"https://crates.io/crates/lexer"},{"type":"ADVISORY","url":"https://rustsec.org/advisories/RUSTSEC-2020-0138.html"},{"type":"REPORT","url":"https://gitlab.com/nathanfaucett/rs-lexer/-/issues/2"}],"affected":[{"package":{"name":"lexer","ecosystem":"crates.io","purl":"pkg:cargo/lexer"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"}]}],"ecosystem_specific":{"affected_functions":null,"affects":{"os":[],"arch":[],"functions":[]}},"database_specific":{"informational":null,"source":"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2020-0138.json","cvss":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","categories":["memory-corruption","thread-safety"]}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}