~ / search / GHSA-3hj2-hh36-hv9v

GHSA-3hj2-hh36-hv9v

Data race in va-ts

Source: GitHub Advisory Database (reviewed) Moderate CVE-2020-36220

Packages

EcosystemPackageAffectedFixed in
crates.io va-ts < 0.0.4 0.0.4

Details

As written in the advisory (Markdown source, shown as plain text).

In the affected versions of this crate, Demuxer<T> unconditionally implemented Send with no trait bounds on T. This allows sending a non-Send type T across thread boundaries, which can cause undefined behavior like unlocking a mutex from a thread that didn't lock the mutex, or memory corruption from data race. The flaw was corrected in commit `0562cbf` by adding a T: Send bound to the Send impl for Demuxer<T>.

References

External links from the advisory. They lead to third-party sites.