CVE-2020-36458 – lexer
Package
Manager: cargo
Name: lexer
Vulnerable Version: >=0 <=0.1.16
Severity
Level: High
CVSS v3.1: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0: CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
EPSS: 0.00301 pctl0.52942
Details
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.
Metadata
Created: 2021-08-25T20:58:09Z
Modified: 2022-05-05T18:16:25Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/08/GHSA-f997-8gxg-r354/GHSA-f997-8gxg-r354.json
CWE IDs: ["CWE-362", "CWE-77"]
Alternative ID: GHSA-f997-8gxg-r354
Finding: F124
Auto approve: 1