Files
advisory-db/crates/toolshed/RUSTSEC-2020-0136.md
Alexander Kjäll f494f83f8e add missing cve info to advisories (#1077)
looks like RUSTSEC-2020-0036 might be a special case, someone got a cve for that the crate is unmaintained
2021-10-14 21:53:11 +02:00

724 B

[advisory]
id = "RUSTSEC-2020-0136"
package = "toolshed"
date = "2020-11-15"
url = "https://github.com/ratel-rust/toolshed/issues/12"
categories = ["memory-corruption", "thread-safety"]
keywords = ["concurrency"]
aliases = ["CVE-2020-36456"]

[versions]
patched = []

CopyCell lacks bounds on its Send trait allowing for data races

CopyCell<T> is a Cell-like type that is implemented for any type T that is Copyable. It's Send trait has no bounds on the contained type.

As not all Copyable types are thread safe, for example non-mutable references implement the Copy trait, it is possible to send references to types with interior mutability such as Cell across threads and cause data races.