Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RUSTSEC-2020-0140: Shared can cause a data race #1306

Open
github-actions bot opened this issue Feb 13, 2024 · 0 comments
Open

RUSTSEC-2020-0140: Shared can cause a data race #1306

github-actions bot opened this issue Feb 13, 2024 · 0 comments

Comments

@github-actions
Copy link
Contributor

github-actions bot commented Feb 13, 2024

Details
Package model
Version 0.6.0
Warning unsound
URL spacejam/model#3
Patched Versions n/a
Aliases CVE-2020-36460, GHSA-mxv6-q98x-h958

Shared data structure in model crate implements Send and Sync traits regardless of the inner type.
This allows safe Rust code to trigger a data race, which is undefined behavior in Rust.

Users are advised to treat Shared as an unsafe type.
It should not be used outside of the testing context,
and care must be taken so that the testing code does not have a data race
besides a race condition that is expected to be caught by the test.

Check the Rustonomicon for the difference between
a data race and a general race condition.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants