Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLWY5OTctOGd4Zy1yMzU0
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.
Permalink: https://github.com/advisories/GHSA-f997-8gxg-r354JSON: https://advisories.ecosyste.ms/api/v1/advisories/MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLWY5OTctOGd4Zy1yMzU0
Source: GitHub Advisory Database
Origin: Unspecified
Severity: High
Classification: General
Published: over 3 years ago
Updated: almost 2 years ago
CVSS Score: 8.1
CVSS vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS Percentage: 0.00254
EPSS Percentile: 0.6555
Identifiers: GHSA-f997-8gxg-r354, CVE-2020-36458
References:
- https://nvd.nist.gov/vuln/detail/CVE-2020-36458
- https://gitlab.com/nathanfaucett/rs-lexer/-/issues/2
- https://rustsec.org/advisories/RUSTSEC-2020-0138.html
- https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/lexer/RUSTSEC-2020-0138.md
- https://github.com/advisories/GHSA-f997-8gxg-r354
Blast Radius: 7.3
Affected Packages
cargo:lexer
Dependent packages: 2Dependent repositories: 8
Downloads: 21,503 total
Affected Version Ranges: <= 0.1.16
No known fixed version
All affected versions: 0.1.0, 0.1.1, 0.1.2, 0.1.3, 0.1.4, 0.1.5, 0.1.6, 0.1.7, 0.1.8, 0.1.9, 0.1.10, 0.1.11, 0.1.12, 0.1.13, 0.1.15, 0.1.16