Advisory

GHSA-f997-8gxg-r354

Also known as: CVE-2020-36458, RUSTSEC-2020-0138

Summary

Data races in lexer

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2021-08-25 20:58 UTC
Modified
2023-11-08 04:03 UTC

Affected packages and fixes

lexer

crates.io · All systems

Affected

  • introduced 0, last affected 0.1.16 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences