{"id":"CVE-2020-36458","aliases":["CVE-2020-36458","GHSA-f997-8gxg-r354","RUSTSEC-2020-0138"],"related":[],"kind":"vulnerability","state":"published","title":"Data races in lexer","summary":"An issue was discovered in the lexer crate through 2020-11-10 for Rust. For ReaderResult<T, E>, there is an implementation of Sync with a trait bound of T: Send, E: Send.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"An issue was discovered in the lexer crate through 2020-11-10 for Rust. For ReaderResult<T, E>, there is an implementation of Sync with a trait bound of T: Send, E: Send.","source":"cvelist"},{"lang":"en","text":"lexer is a plugin based lexical reader.Affected versions of this crate implements Sync for ReaderResult<T, E> with the trait bound T: Send, E: Send. Since matching on the public enum ReaderResult<T, E> provides access to &T & &E, allowing data race to a non-Sync type T or E. This can result in a memory corruption when multiple threads concurrently access &T or &E. Suggested fix for the bug is change the trait bounds imposed on T & E to be T: Sync, E: Sync.","format":"markdown","source":"ghsa"},{"lang":"en","text":"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`.","format":"markdown","source":"rustsec"},{"lang":"es","text":"Se ha detectado un problema en la crate lexer hasta el 10-11-2020 para Rust. Para la función  ReaderResult(T, E), Se presenta una implementación de Sync con un trait bound de T: Send, E: Send","source":"nvd"}],"published":"2020-11-10T12:00:00.000Z","modified":"2026-06-17T03:15:32.103Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1,"rating":"HIGH"},{"scorer":"RustSec Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","score":6.8,"rating":"MEDIUM"}],"cwes":["CWE-77","CWE-362"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"0.1.16"}],"ecosystem":"crates.io","package":"lexer","purl":"pkg:cargo/lexer","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected"}],"ecosystem":"crates.io","package":"lexer","purl":"pkg:cargo/lexer","source":"rustsec"},{"ranges":[{"status":"affected","lastAffected":"2020-11-10"}],"vendor":"lexer_project","product":"lexer","cpe":"cpe:2.3:a:lexer_project:lexer:*:*:*:*:*:rust:*:*","source":"nvd"}],"references":[{"url":"https://rustsec.org/advisories/RUSTSEC-2020-0138.html","tags":["advisory","exploit","issue-tracking","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","rustsec","nvd"]},{"url":"https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/lexer/RUSTSEC-2020-0138.md","tags":["third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-36458","tags":["advisory"],"sources":["ghsa"]},{"url":"https://gitlab.com/nathanfaucett/rs-lexer","tags":["package"],"sources":["ghsa"]},{"url":"https://gitlab.com/nathanfaucett/rs-lexer/-/issues/2","tags":["report","web"],"sources":["ghsa","rustsec"]},{"url":"https://crates.io/crates/lexer","tags":["package"],"sources":["rustsec"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-36458","url":"https://www.cve.org/CVERecord?id=CVE-2020-36458","licence":"CVE Terms of Use","modified":"2024-08-04T17:30:07.395Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-f997-8gxg-r354","url":"https://github.com/advisories/GHSA-f997-8gxg-r354","licence":"CC-BY-4.0","modified":"2023-11-08T04:03:46.074Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2020-0138","url":"https://rustsec.org/advisories/RUSTSEC-2020-0138.html","licence":"CC0-1.0","modified":"2023-11-08T04:03:46.074Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-36458","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-36458","licence":"Public domain","modified":"2026-06-17T03:15:32.103Z"}],"updatedAt":"2026-11-25T22:57:58.291Z","epss":{"score":0.00804,"percentile":0.57939,"date":"2026-12-02T12:00:21.000Z"}}