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-2021-0089: Optional Deserialize implementations lacking validation #4

Open
github-actions bot opened this issue Aug 22, 2021 · 0 comments

Comments

@github-actions
Copy link

Optional Deserialize implementations lacking validation

Details
Package raw-cpuid
Version 7.0.4
URL gz/rust-cpuid#43
Date 2021-01-20
Unaffected versions <=3.1.0

When activating the non-default feature serialize, most structs implement
serde::Deserialize without sufficient validation. This allows breaking
invariants in safe code, leading to:

  • Undefined behavior in as_string() methods (which use
    std::str::from_utf8_unchecked() internally).
  • Panics due to failed assertions.

See gz/rust-cpuid#43.

A fix is not yet available, but most use cases do not require enabling
the serialize feature.

See advisory page for additional details.

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