Memory Corruption Affecting lexer package, versions >=0.0.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.4% (74th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RUST-LEXER-1066255
  • published1 Feb 2021
  • disclosed10 Nov 2020
  • creditUnknown

Introduced: 10 Nov 2020

CVE-2020-36458  (opens in a new tab)
CWE-119  (opens in a new tab)

How to fix?

There is no fixed version for lexer.

Overview

lexer is a plugin based lexical reader.

Affected versions of this package are vulnerable to Memory Corruption. 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, this allows a 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.

References

CVSS Scores

version 3.1