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-0122: beef::Cow lacks a Sync bound on its Send trait allowing for data races #14

Closed
github-actions bot opened this issue Jan 28, 2021 · 1 comment · Fixed by #15
Closed

Comments

@github-actions
Copy link

beef::Cow lacks a Sync bound on its Send trait allowing for data races

Details
Package beef
Version 0.4.4
URL maciejhirsz/beef#37
Date 2020-10-28
Patched versions >=0.5.0

Affected versions of this crate did not have a T: Sync bound in the Send impl for Cow<'_, T, U>. This allows users to create data races by making Cow contain types that are (Send && !Sync) like Cell<_> or RefCell<_>.

Such data races can lead to memory corruption.

The flaw was corrected in commit d1c7658 by adding trait bounds T: Sync and T::Owned: Send to the Send impl for Cow<'_, T, U>.

See advisory page for additional details.

@Tamschi
Copy link
Owner

Tamschi commented Jan 29, 2021

> cargo why beef
taml -> logos -> logos-derive -> beef

I can't upgrade this here, unfortunately, but the fix is already on logos's master branch.

I have subscribed for update notifications for that crate and should remember to fix this once a new version is released.

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

Successfully merging a pull request may close this issue.

1 participant