CVE-2020-36458
Data races in lexer
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- High
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
8.1
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.
- Record
CVE-2020-36458- CVSS 3.1
- 8.1 High
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H - CVSS 2.0
- 6.8 Medium
AV:N/AC:M/Au:N/C:P/I:P/A:P - Weakness
- CWE-362
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2020-36458- Updated
- 2026-11-02
EUVDEUVD-2021-1696 No score
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.
- Record
EUVD-2021-1696- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-f997-8gxg-r354
8.1
Data races in lexer
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.
- Record
GHSA-f997-8gxg-r354- CVSS 3.1
- 8.1 High
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-77, CWE-362
- Updated
- 2026-11-02
OSVGHSA-f997-8gxg-r354
8.1
Data races in lexer
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.
- Record
GHSA-f997-8gxg-r354- CVSS 3.1
- 8.1 High
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-362, CWE-77
- Updated
- 2026-11-02
OSVRUSTSEC-2020-0138
8.1
ReaderResult should be bounded by Sync
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.
- Record
RUSTSEC-2020-0138- CVSS 3.1
- 8.1 High
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
Affected products
Affected packages
History
| Recorded | Changed | Sources |
|---|---|---|
| facts | ||
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2020-36458 is a high vulnerability (CVSS 8.1) in Lexer Project Lexer, published November 10, 2020. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.83%, the 58th percentile. No source names a fixed version.
References
rustsec.org/advisories/RUSTSEC-2020-0138.html
raw.githubusercontent.com/rustsec/advisory-db/main/crates/lexer/RUSTSEC-2020-0138.md
nvd.nist.gov/vuln/detail/CVE-2020-36458
gitlab.com/nathanfaucett/rs-lexer/-/issues/2
github.com/advisories/GHSA-f997-8gxg-r354
gitlab.com/nathanfaucett/rs-lexer
crates.io/crates/lexer