Files
vuln-osv/data/crates.io/RUSTSEC-2020-0138.json
T

1 line
1.5 KiB
JSON

{"schema_version":"1.7.3","id":"RUSTSEC-2020-0138","published":"2020-11-10T12:00:00Z","modified":"2023-11-08T04:03:46.074313Z","aliases":["CVE-2020-36458","GHSA-f997-8gxg-r354"],"summary":"ReaderResult should be bounded by Sync","details":"Affected versions of this crate implements `Sync` for `ReaderResult<T, E>` with the trait bound `T: Send, E: Send`.\n\nSince matching on the public enum `ReaderResult<T, E>` 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`.","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":{"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:H/I:H/A:H","informational":null,"source":"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2020-0138.json"}}],"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"}],"database_specific":{"license":"CC0-1.0"},"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}